Validating Radiobutton Values in a Repeating Table? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Validating Radiobutton Values in a Repeating Table?

Last post 07-10-2012 08:32 AM by nkstrou. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-09-2012 05:03 PM

    Validating Radiobutton Values in a Repeating Table?

    Hi all

    I don't have a lot of time to search the forum tonight, so pardon me if this a common question.

     My IP 2010 Filler form has a repeating table, and each row in the repeating table contains a set of radiobuttons marked Yes and No.  I set the radiobutton control to No by default, but need to validate that at least one occurrence gets set to Yes.  Let's call the Repeating Table gpSGpNames and the radiobuttion optYesNo.  Right now, they are both in the same section, but I can move them out if need be, because my section didn't give me what I need. (see next paragraph).

    I know I can only use All Occurrences of, Any Occurrences of, etc. on a section, and sections don't give me the option to create Validation rules.  I'd like to avoid writing custom code if possible.  Does anyone know of a way I can do this?

    Thanks for any reply,

     nkstrou

    An imprecisely defined requirement has an infinite number of possible solutions. Unfortunately, only about a maxiumum of 3 solutions are actually satisfactory to the end user.
  • 07-10-2012 08:32 AM In reply to

    Re: Validating Radiobutton Values in a Repeating Table?

    Alright, solved my own problem.

    I created a hidden field in the section where my repeating table is called txtValTotal, which is set to 0 by default.  I increment txtValTotal by 1 if the Yes/No radiobutton changes to Yes and decrement it by 1 if the radiobutton changes to No.  Then I have a validation rule on the Yes/No radiobutton that turns on when txtValTotal < 1.  I'll need to play around a little more to see what it does if I save the form then reopen it, but this will do me for now.

     Thanks,

    nkstrou

    An imprecisely defined requirement has an infinite number of possible solutions. Unfortunately, only about a maxiumum of 3 solutions are actually satisfactory to the end user.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.