Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2006

Tip: Looking for answers? Try searching our database.

Making Query Fields Required

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ridawg - 08 May 2006 18:35 GMT
Hey,

I'm trying to make a query field (dropdown box) required so that when a user
clicks the query button a check is made against the query field making sure
the user has made a selection from the dropdown field.

I thought this would be pretty easy to do using either a rule but when you
use the default query button you don't have the option to create rules.

I have two forms I need this functionality for. My first form has just one
query field (dropdown) and I need the user to make a selection. I have a
second form I created that has several query fields and I would like to
require that at least one field has a value.

Thanks for the help!

Signature

-ridawg

S.Y.M. Wong-A-Ton - 08 May 2006 20:15 GMT
You can add a normal button control with a rule to query the main connection
of your form. This will give you the same functionality as the standard
"Query" button of InfoPath. Then you can add a condition on this rule to let
the rule run only when the dropdown is not blank. Add a second rule to the
button to show a message box when the dropdown is blank (= condition on the
second rule). Apply the same concept to your second form.
---
S.Y.M. Wong-A-Ton

> Hey,
>
[quoted text clipped - 11 lines]
>
> Thanks for the help!
ridawg - 09 May 2006 12:10 GMT
Works great! Thanks for the help.

Signature

-ridawg

> You can add a normal button control with a rule to query the main connection
> of your form. This will give you the same functionality as the standard
[quoted text clipped - 20 lines]
> >
> > Thanks for the help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.