Field Validation Error Prevents Submitting The Form - Custom Submit Button - InfoPath Dev
in

InfoPath Dev

Field Validation Error Prevents Submitting The Form - Custom Submit Button

Last post 10-06-2015 08:15 AM by cz48b1. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-05-2015 06:53 AM

    • cz48b1
    • Not Ranked
    • Joined on 05-25-2015
    • Posts 4

    Field Validation Error Prevents Submitting The Form - Custom Submit Button

    Hi all,
     
      If I understand correctly, the best approach is to disable the Submit and Save options (Form Options | Web Browser in InfoPath) in the toolbar and use your own Submit button.
     
      Problem is that, when the user clicks Submit and there’s a field validation error, a validation warning is shown, user clicks Ok button, the form is closed and all filled data is lost (user needs to start from scratch).
     
      In my case it’s not just a matter of if a required filed is empty or not (and maybe, enable/disable the Submit button accordingly).
      The field may be filled and still have a validation error (something like a “MVSN-NNN” mask where “N” is numeric).
     
      See Submit Click rules below (and image):
      - Close this form: No Prompt
      - Set a field’s value: txtSubmit = “1”
      - Submit using a data connection….
     
      I see the “Don’t run remaining rules if the condition of this rule is met” (see link below) but I cannot see any way of creating a new rule at the top that captures a field validation error.
     
      Any ideas???
     
      Thanks in advance!!!
     
      http://imgur.com/fdMmj8a
     
    A fé remove montanhas, mas eu prefiro dinamite.
  • 10-05-2015 03:34 PM In reply to

    Re: Field Validation Error Prevents Submitting The Form - Custom Submit Button

    Usually when we hit a validation error on submit, the form rules quit executing and the form stays open so we can fix our errors and try again. I see in your rules you have the "close" rule before the others - move that to the bottom and see if that solves the issue. I'm actually surprised IP is even trying to submit, since you have the close rule first. :)
    Hilary Stoupa

  • 10-06-2015 08:15 AM In reply to

    • cz48b1
    • Not Ranked
    • Joined on 05-25-2015
    • Posts 4

    Re: Field Validation Error Prevents Submitting The Form - Custom Submit Button

    Hi, Hilary SOLVED!!! Thank you so much.
    A fé remove montanhas, mas eu prefiro dinamite.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.