Update Address fields if radio button condition is met

  • NGHS
    Asked on February 28, 2017 at 11:30 AM

    Hello! I need automatically insert an address into address fields when a radio button is selected. So far, I have tried using the conditional update field. This hasn't worked so far. Thanks for the help!

     

    (See screenshot for clarity)

    Jotform Thread 1077958 Screenshot
  • David JotForm Support Manager
    Replied on February 28, 2017 at 1:24 PM

    If you need to update the value from one field to another, here is how: https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field 

    If you need more help, please let us know what is the form you are using, so we can check further.

  • NGHS
    Replied on February 28, 2017 at 1:37 PM

    David, thanks for the response. This does not speak to my exact need, though. How do I use the field updater to put information into a multi-field form element (ex: address)?

  • David JotForm Support Manager
    Replied on February 28, 2017 at 3:43 PM

    Unfortunately no, it is not possible to input text into an address field through conditions. It is only possible to populate the data from another address:

    Example:

    Update Address fields if radio button condition is met Image 1 Screenshot 20

    Let us know if you have more questions.

  • NGHS
    Replied on February 28, 2017 at 4:50 PM

    In that case, could I create a prefilled address field and just trigger that info to be copied into another address field? 

  • David JotForm Support Manager
    Replied on February 28, 2017 at 7:19 PM

    Unfortunately, prefilling is not possible either. However, I think you might want to implement the following workaround:

    1) Create a new form where you capture the basic information such as the Name, E-mail, and the Radio Button option.

    2)Then create prepopulated URLs of your main current form by following these guides:

    2.1. Use this guide to pass the basic data from your new form to your main form: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form 

    2.2 And combine it with this guide to generated the prepopulated parameters: https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters 

     Prepopulated URLs example:

    URL for address A:

    https://form.jotform.co/70085255864865?name[first]={name:first}&name[last]={name:last}&email={email}&address[addr_line1]=Stree One A&address[addr_line2]=Street Two A&address[city]=My City A&address[state]=My State A&address[postal]=000A

    URL for address B:

    https://form.jotform.co/70085255864865?name[first]={name:first}&name[last]={name:last}&email={email}&address[addr_line1]=Stree One B&address[addr_line2]=Street Two B&address[city]=My City B&address[state]=My State B&address[postal]=000B

     

    3) In your new form, create conditions to redirect to a specific prepopulated URL based on the selected radio option: https://www.jotform.com/help/317-Change-Thank-you-URL-Based-on-a-Condition 

    Update Address fields if radio button condition is met Image 1 Screenshot 30

    Result:

    Update Address fields if radio button condition is met Image 2 Screenshot 41

    Here is the URL of my form for you to test: https://form.jotform.co/70586844674874 

    Hope this helps.