Update Address fields if radio button condition is met

  • Profile Image
    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)

  • Profile Image
    BDAVID
    Answered on February 28, 2017 at 01: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.

  • Profile Image
    NGHS
    Answered on February 28, 2017 at 01: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)?

  • Profile Image
    BDAVID
    Answered on February 28, 2017 at 03: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:

    Let us know if you have more questions.

  • Profile Image
    NGHS
    Answered on February 28, 2017 at 04:50 PM

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

  • Profile Image
    BDAVID
    Answered on February 28, 2017 at 07: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 

    Result:

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

    Hope this helps.