Cannot be blank feilds are not validating the form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Cannot be blank feilds are not validating the form

Last post 10-12-2012 03:18 AM by wilkies0106aw. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-12-2012 02:45 AM

    Cannot be blank feilds are not validating the form

    I have a form with some "Cannot be blank" fields(Mandatory). And also some code behind on button click. When i click the button without entering values in the mandatory fields, the validations are not working.

    Can anybody help me, please..

    Filed under:
  • 10-12-2012 03:18 AM In reply to

    Re: Cannot be blank feilds are not validating the form

    Several things come to mind:

    I kid you not, reverse what you have written as your condition, change cannot be blank, to blank. I can often get them the wrong way round, even though in my mind it makes perfect sense, what my condition is.

    Why not validate the fields before you need to submit the data?  That way you should see an asterisk or red dash around your fields before some information is input into the fields.

    If the validation is based on several conditions, check each condition separately, step by step..

    Add a dummy text field to the form and set it's default value to the field you are validating against. Then you should see what Infopath sees and the field value and why it's not validating as expecting.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.