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.

Populate input fields with jQuery

  1. How do I use jQuery to take the value someone has typed in to a previous field in to another field on the same form?

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  2. Assuming that you want to auto-populate the second field as soon as the person "exits" the first field, this code would do the trick:

    http://pastie.org/2014187

    You will need to update the #ids to match the inputs on your field.

    Posted 12 years ago on Friday June 3, 2011 | Permalink
  3. Thank you very much David :)

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  4. Thanks again David but I am struggling a bit with multi page forms. I have form field in step 1 which needs to automatically pre populate a field in step 2. I have been reading about gform_page_loaded but can not seem to get it to work. Can you please shed some light on this process?

    Regards,
    Jack

    Posted 12 years ago on Wednesday June 8, 2011 | Permalink