Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to clear form fields on successful submit

    There does not appear to be a way to clear form fields after a successful form submission. There is a demo application that calls form.reset() after form.saveData() but this does not produce the correct results in the case where there is a validation error (the validation error gets cleared along with the form fields). Is there any alternate way to clear these fields after form submission?

    #2
    resetValues() goes to the last set of values applied to the form. Use clearValues() and clearErrors() to fully reset the form for new data entry.

    Comment


      #3
      Ok, is there a hook to call clearValues after a successful submit occurs? This needs to happen after the submit completes.

      Comment


        #4
        Use the callback argument of saveData()

        Comment

        Working...
        X