Determine required fields upon Radio-Buttons

A

Alexander

Hi,

I am currently developing a little form which has 3 different radio buttons.

Each Button requires another set of fields (I will have 3 different
sections, one for each option).

But I need some required fields for each section, which will be determined
by the selection of the radio buttons.

If I now set required fields for all three sections Infopath will give me an
error if only fields for the current (selected) section are set, but not for
the others (which I would like to hide).

How can I solve this problem? Any suggestions?
 
S

Scott L. Heim [MSFT]

Hi Alexander,

The only way I can think of is you would need to *not* set the fields as
required and then use custom scripting to insure the "required" fields are
actually completed.

For instance, let's say you have a "submit" or "save" button - before
executing the submit or save, you will need to test each field to insure it
is not empty.

I hope this helps!

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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