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.

Reset Dynamically Populated Form Fields

  1. noxbane
    Member

    My form posts back to itself, updates markers on a Google Map, then shows the form with the form fields dynamically populated (from their previous submission) so the user can modify their search without starting over. For more details see my previous thread: http://www.gravityhelp.com/forums/topic/on-submit-show-form-with-values-still-intact

    Anyway, there are times when the user will not want to modify their search, they may want a new one. So I want a button that will clear all fields. I've tried inserting a reset button with the HTML block, but it only resets a field that is NOT dynamically populated. How can I clear the fields that are dynamically populated with the click of a button?

    Posted 7 years ago on Wednesday July 18, 2012 | Permalink
  2. David Peralty
    Administrator

    Have a look at the following and update your button code:
    http://www.javascript-coder.com/javascript-form/javascript-reset-form.phtml

    Make sure you use single quotes instead of double quotes for things.
    Let me know if it doesn't work.

    Posted 7 years ago on Wednesday July 18, 2012 | Permalink
  3. noxbane
    Member

    Works beautifully. Thanks for the quick assistance!

    Posted 7 years ago on Wednesday July 18, 2012 | Permalink
  4. David Peralty
    Administrator

    No problem. Have fun!

    Posted 7 years ago on Wednesday July 18, 2012 | Permalink

This topic has been resolved and has been closed to new replies.