Custom code for required radio buttons

S

snowbaby

Hi,

Ok, bear with me, I'm new to InfoPath.

I am trying to set up a form that has two radio button options (the
"question" is required to answer) and additional information is needed from
the user on both options. If they choose the first option, there are
additional radio button options they need to choose from (both of these are
also required). If they choose the second option, they need to fill out
their address.

I am having trouble with this because when they choose the second option
(when they have to enter their address), it won't let them submit the form
since the second set of radio buttons under the first option are required.
Any ideas?

Example of how this is supposed to work:
*Pick up check (first radio option)
*SFS
*Office
*Mail check (second radio option)
address text box

It is required to answer either pick up or mail. If pick up is selected it
is required to answer which place.
 
S

SMS

Hi,

Ok, bear with me, I'm new to InfoPath.

I am trying to set up a form that has two radio button options (the
"question" is required to answer) and additional information is needed from
the user on both options.  If they choose the first option, there are
additional radio button options they need to choose from (both of these are
also required).  If they choose the second option, they need to fill out
their address.

I am having trouble with this because when they choose the second option
(when they have to enter their address), it won't let them submit the form
since the second set of radio buttons under the first option are required..  
Any ideas?

Example of how this is supposed to work:
*Pick up check (first radio option)
     *SFS
     *Office
*Mail check (second radio option)
     address text box

It is required to answer either pick up or mail.  If pick up is selected it
is required to answer which place.

Remove the required for the Second set of option.

Then for the second set, you right click it and choose "Data
Validation". In the condition put the following :
If first option is choosen for first radio button
and
if the second set is blank
then Display that it is required.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top