Clear Hubspot form fields once clicked on submit button
SOLVE
Hello all,
so i have one modal button(inquiry form button): onclick inquiry form is displayed; i am using hubspot form. what i want is once i click on submit button thank you message should be diplayed at the same time that form should be reset to blank form .can i achieve that? so that when user go and click on that modal button again they can enter another inquiry. but right now once the form is filled i can see thank you message every time i click on the modal button. the form gets reset only after i refresh the page.
Clear Hubspot form fields once clicked on submit button
SOLVE
I don't believe you can do this with a Hubspot form. A workaround would be to have an html form display in place of the hubspot form, and use a serverless function to submit the data that you would like to submit via the api. Then you can use javascript to clear the fields or do whatever else you need to do. Hope this helps.
Clear Hubspot form fields once clicked on submit button
SOLVE
I don't believe you can do this with a Hubspot form. A workaround would be to have an html form display in place of the hubspot form, and use a serverless function to submit the data that you would like to submit via the api. Then you can use javascript to clear the fields or do whatever else you need to do. Hope this helps.
Clear Hubspot form fields once clicked on submit button
SOLVE
While you're in the Options section of the form, enable the "Always create contact for new email address" option. This should automatically disable "Pre-populate contact fields with known values" as well. Now when the page reloads, the form should be empty and create a new contact instead of updating the same contact in its place.