Data Validation

K

Kori

I have a form with two radio buttons, one for yes the other for no. I want
users to have to select one of these before submitting the form. I want my
own error message that tells them to answer the question before submitting
the form rather than the cryptic message that infopath gives by default. I
tried putting my own message in but infopath still gives its cryptic message
before my message can be displayed. Is there a way to make my message appear
- I have tried going to data validaton, Add, If this condition is true, my
field is blank the show my error screen tip and message. It still does not
come up first, just infopath's cryptic message comes up instead first. Mine
only shows up to the user by them right-clicking on the radio button which is
of no use.
 
C

Clay Fox

Hi Kori.
I am guessing you are using the default submit for your button type.
You want to change it to rules.

Then add a rule where (field radio buttons are bound to) is blank.
Check stop processing rules.
Add message action with your alert
Say Ok to the action and rule
This effectivly stops the button for doing anything more until the field is
not blank.
Then add another rule which calls the submit action. This rule will only
execute if the first is not true.

Another option is to add conditional formatting to your button and disable
the button if the field is blank.
That way the submit is unclickable until the condition is met but does not
offer the message to users why. Often i will give them some bold text which
says the answer is required and is hidden once they choose an answer.
 

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