We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Infopath validation - show a message based on a control selection?

Medium Priority
Last Modified: 2013-12-13

I'd like to create a form in Infopath 2007 that shows a "hint" type text based on user's selection of a particular dropdown and possibly changes whether another control is required in order to submit (the asterisk). The logic would be:

Dropdown value = X, display "you must enter destination when using this service", and set control2 to REQUIRED.

Dropdown value = Y, display no text, and don't change any required fields (unless user already selected X in dropdown, then put it back to defaults now)

Is that possible WITHOUT code?

And how does that change in Infopath2010 - if at all?

thanks :)
Watch Question

Director of Business Integration
Unlock this solution and get a sample of our free trial.
(No credit card required)


Ok that seems simple enough.

I'm keeping it very simple... 1 dropdown w/ 3 options, and 1 blank rich text field to show messages depending on the selection in the dropdown.

The dropdown has values 1, 2, or 3.

I set a rule to make the rich text field say "test" if the dropdown is "1" - and it works :)   But if you change to 2, 3, or blank, the text stays in the rich text field and I don't really want that. Is there an easy way to make this clear out or do I need to set a rule for each possibility in the dropdown?


If I make a validation rule to show a ScreenTip - where does that tip show up? I'm in the filler and it doesnt show up unless I make it do a dialog box as well...


Whoohoo I got it :D

I can add a new rule to blank out the textbox whenever the dropdown changes, and just put that above the other one so it does both.

And i found the screentip, silly little hover thing, not very useful.

One thing, however, still perplexes me...   is it possible to make a control "cannot be blank" (i.e. required) when another control has a certain value?  I can't find any rules to do this...
Clay FoxDirector of Business Integration

You cannot use the default cannot be blank, you have to add the conditions to your rules manually so that the process does not run unless your conditions are met.

Glad you got it.

I have found it just takes lots of tinkering and baby steps to get a good feel for what can be done.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.