PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Validate Once

  1. I have a form that validates against some data in my database. I have the custom validation working. What I would really like though is to validate only once; i.e show that validation message and let the user submit the form again if they choose without a validation message. Is this possible?

    Posted 11 years ago on Thursday June 14, 2012 | Permalink
  2. David Peralty

    Validation fires every time a user submits a form. You could add a hidden field, and then after the first submission, it populates that hidden field and upon the second submission you could test for that value and then skip your validation you added.

    Posted 11 years ago on Thursday June 14, 2012 | Permalink
  3. That makes sense. But how do I populate the hidden field from within the validation hook? I know how to pre-populate it when the form is built. That would fire before the validation though. I'm sure I'm missing something simple. ;)

    Posted 11 years ago on Friday June 15, 2012 | Permalink