PerfectForms Forums » Behaviors

Check for mandatory fields before going to next page

(3 posts)
  1. frank1
    Member

    Hello,

    I want to make sure users fill mandatory fields before being allowed to the next page. I've tried 2 different (unsuccessful) strategies so far:

    1. In the "Page Button Properties", there is only 1 behavior available: "PageButton is shown". I don' understand why there's no "PageButton is clicked" behavior. That would allow me to add a behavior associated to the clicked button and check for mandatory fields.

    2. In the "Page Properties", I set a behavior for when the page is closed. In the behavior view, I have a "Check Mandatory" object for 4 objects (Name fields, telephone field, etc...). In the "Check Mandatory Properties", the "Stop execution if check fails" is checked. When previewing & testing the form, I get a warning when mandatory fields are not filled. So far so good. However the form leads me to the next page instead of stopping on the current page.

    How can I implement what I'm trying to do, i.e. forcing users to fill mandatory fields before going to the next page?

    Thanks

    Posted 2 years ago #
  2. Don't use a Page Button - use a normal button. Then you will have a Button is Clicked behavior. Use a Mandatory check object, then link to a Page object and select where you want it to go (Next Page probably).

    Cheers.

    Posted 2 years ago #
  3. frank1
    Member

    This is working great. Thanks!

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture