Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Steve 5 months, 2 weeks ago.

  • Author
    Posts
  • #9271

    dewebkiller
    Participant

    I want to reset the frontend form after submitting the values but its not working. Is there any piklist way to reset the form after the submission but not reset button.

    My form is simple. I just want user to post the article in some category. Everything is working fine except even after the submission the value will be in the form field and everytime i refresh the site that form is being submitted.

  • #9272

    Steve
    Keymaster

    @dewebkiller– Welcome to the Piklist community!

    The best way to do this is to redirect the form after submission using the Redirect comment block parameter. There are examples in the docs: https://docs.piklist.com/comment-block-parameters/#redirect

  • #9279

    dewebkiller
    Participant

    the redirect parameter is working fine. I was wondering if there is any other way to reset the form data. Any way thanks for your help.

  • #9286

    Steve
    Keymaster

    You can probably use JS or jQuery. Any tutorial on resetting form data will work.

The topic ‘Reset form after submission in frontend.’ is closed to new replies.