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.

How to use input in one field to populate another

  1. chrishill123
    Member

    I have written the code to pull through a list of user IDs to a drop down box.

    Now I need to automatically populate two other fields (firstname and lastname) based on the userid selected in the dropdown box.

    For the life of me I cannot seem to get this to work. I think I'm over complicating things so can someone walk me through how to use the value of a field, before submission, for use in another field.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  2. There is nothing like this built in to Gravity Forms. You will have to use jQuery or JavaScript to watch for the value change in one field, then populate your other fields.

    http://stackoverflow.com/q/2004315/

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink