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 do custom field?

  1. eeadmin
    Member

    What I need to do is next:

    A customer would like that when a user enter his city, I will pre-populate the phone number field with the city prefix...

    How do I create a custom field for that? I understand that I can add a JS to it to make the AJAX call but how to create a joined field?

    Posted 13 years ago on Thursday December 22, 2011 | Permalink
  2. What would probably be better than making your own custom form field in Gravity Forms (which is certainly possible, but is a more involved customization) is use custom jQuery to automatically populate part of the Phone field based on what they enter into the City field.

    You would do this by writing custom jQuery that you output on the same page as the form. I don't have any example code for you and as this is a customization you'd have to write the code for it.

    Posted 13 years ago on Thursday December 22, 2011 | Permalink