I have a form with several fields that if the user enters any information in one or more of the
fields, I need to verify that the drop-down field is not blank.
I got that to work, but now I find that if the user deletes the text in the text field, the user still gets the error message. Here's the script I'm using:
if
((form1.page1.ListFilesFolders.rawValue) != null && (form1.page1.windsNtwkAccess.rawValue) == null);
{
xfa.host.setFocus(form1.page1.windsNtwkAccess);
xfa.host.messageBox("Please make a selection in the Windows Network field."
, "Need Selection", 1,0);
}
Thanks,
MDawn
Solved! Go to Solution.
Views
Replies
Total Likes
Makes sense ..the field is null when the user deletes the text. You could put a blank in those fields as defaults and test for that instead of null. Now when the user empties the field it will be null and will not be blank hence the message will not appear.
Make sense?
Paul
Views
Replies
Total Likes
Makes sense ..the field is null when the user deletes the text. You could put a blank in those fields as defaults and test for that instead of null. Now when the user empties the field it will be null and will not be blank hence the message will not appear.
Make sense?
Paul
Views
Replies
Total Likes
I'll try that. Thanks for your quick reply.
Margaret Dawn
Supervisor - Documentation
W: 630-850-1065
Views
Replies
Total Likes