Forums

Forums / Developing Portals / Submitting a form is giving success without clearing the form

Submitting a form is giving success without clearing the form

2 posts, 1 answered
  1. Krishna Hari
    Krishna Hari avatar
    44 posts
    Registered:
    05 Dec 2019
    Answered
    16 Nov 2020
    Link to this post
     
    just upgraded sitefinity to 12.2 and tpc the forms seems to be submitting and we are getting success message. but the fields are still showing
    Last modified on 16 Nov 2020 17:11 by Krishna Hari
  2. Patrick
    Patrick avatar
    33 posts
    Registered:
    20 Apr 2020
    19 Feb
    Link to this post
    Hi Krishna,

    It seems you've already found the solution to your question, but please see below for reference:

    If you're looking to submit the form and hide the form after submission, there's an advanced property on the TPC Form Manager widget called "ShowFormOnSuccess". Setting this to False will hide the form after submission.

    If you're looking to go back to the same page with all the fields cleared, you could simply set a redirect on form submission back to that page. In the form, edit your TPC Submit Button widget. Check off "Enable Next Step", and specify the page you want to redirect to.

    Hope this helps!

    Patrick
2 posts, 1 answered