All validation errors of a form - InfoPath Dev
in

InfoPath Dev

All validation errors of a form

Last post 11-12-2012 03:52 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-12-2012 12:16 AM

    • Carel
    • Not Ranked
    • Joined on 09-14-2012
    • Posts 7

    All validation errors of a form

    Hi,

    Does anyone perhaps know of a way to find out at any point when a form is filled in if there are any validation errors on the page? I am having a lot of trouble with users that are not very knowledgeable with computers. The corporate branding of all sites and forms etc. where I work specifies that certain headings and such must be red and bolded. Now when a user fills in a form with any validation errors they get the message advising them to look out for the red marked asterisk and/or borders.

    At this piont the user gets confused and sees some red everywhere on the form, not knowing where to fix their error. The next step is, naturally, to phone me and complain that the form is broken. What I want to do is perhaps have a formatting rule on the submit button to hide it if any validation rules exist on the page. I do not want to have a manual field that somehow becomes true specified by the rules when there is no more validation errors, because some of these rules can work out to have 50+ fields in them.

    The next logical step would be to be able to message the user with some details on what needs to be fixed at the bottom of the form for the submit button to appear. These messages should naturally disappear dynamically as the fields are corrected.

    I will settle for now, however, for a way to determine that there are no validation errors on a page. (without attempting to click submit and firing the automatic error message dialog that is..)
  • 11-12-2012 03:52 AM In reply to

    Re: All validation errors of a form

    If you're using a client form, you can use validation to show a dialog box message as soon as the validation error happens.

    If you're using a browser form, there are no dialog boxes possible for validation. You could add a node called "ErrorMessage" and display that (read-only) on the canvas. Depending on the validation issue (which could be many if you have many fields) then you can set the value of ErrorMessage telling the user where or what to fix.

    Hope this helps!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


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