Multiple Radio Buttons - Same Value - InfoPath Dev
in

InfoPath Dev

Multiple Radio Buttons - Same Value

Last post 03-04-2014 07:01 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-03-2014 01:03 PM

    Multiple Radio Buttons - Same Value

    I am currently building a scoring form using InfoPath 2007.  For one question, there are 4 option (radio) buttons.  Two of these buttons (with separate labels) have the same value attached.

    When I test the form and select one of the radio buttons, both choices that have the same numeric value show as selected.  I require only one choice to be selected.  Labeling them with both text values isn't an option.

    Is there any way around this?

  • 03-03-2014 02:13 PM In reply to

    Re: Multiple Radio Buttons - Same Value

    Right click the radio button and check the properties. You can set them to different values.

    Hilary Stoupa

  • 03-04-2014 05:57 AM In reply to

    Re: Multiple Radio Buttons - Same Value

    Thanks for your response, but that is just the issue.  The values of 2 of the choices are the same.  So, when a user of the form were to select one of the radio buttons, the other one with the same value also shows as selected.  I don't want that to happen.  Has anyone experienced this before?

  • 03-04-2014 07:01 AM In reply to

    Re: Multiple Radio Buttons - Same Value

    The controls in the view reflect the current state of the data, and allow the user to interact with it. So if two of the radio buttons have the same value then they will both show as selected when the field takes that value. I'm fairly sure there's no way to prevent that behavior and in some ways it wouldn't make sense (for example, how would InfoPath know which button to show as selected when the form is submitted, closed, and reopened)?

    Have you considered deleting one of them and giving the remaining one prompt text that combines the two radio buttons you have right now?

    The alternative would be to give them distinct values and put a rule on the radio buttons' field to populate a non-displayed field with the actual values you want to use.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.