Use form field value in Single-Choice (radio button) Form Element?

  • menstrom
    Asked on October 5, 2017 at 5:30 PM

    I have figured out how to insert a form field value into a Text Form Element and a Text Entry Form Element by using the format of {FieldName}.  I tried to do the same thing with a Single-Choice Form Element, but it did not work.  Is there a way to insert a value from another field into the options on a Single-Choice (radio button) Form Element?

    Thanks,

    Marilyn

  • Marvih
    Replied on October 5, 2017 at 7:42 PM

    Unfortunately it is not possible to pass any value/data from other fields into your "Single-Choice" radio button form element.

    A workaround for this would be using "User Contributed Radio Buttons" widget so that the user can add their own option.

    Use form field value in Single Choice (radio button) Form Element? Image 1 Screenshot 30

    Or enable "Display other option" in your Single Choice form element

    Use form field value in Single Choice (radio button) Form Element? Image 2 Screenshot 41

    Hope that helps, we would also be able to help you much better or provide more workaround if you can give us more details about what you are aiming to do.

  • menstrom
    Replied on October 6, 2017 at 8:09 AM

    I thought that was probably the answer.  Just to clarify, this is what I would like to do.  I have a short text question that the user has to answer:

    What country are you from?

    When the user answers that question, I want to pass that answer into the radio button choices in the question I have next:

    I have not worked in [country from previous question].

    I have worked in [country from previous question], but I do not have a tax form.

    I have worked in [country from previous question], and I have a tax form provided from [country from previous question].

    So it's not that I want another choice with the value, it's that I want the value embedded in each of the choices.  I just was hoping I could use the same variable option of {country} that I am using with the text elements.  But I can work around it.

    Thanks,

    Marilyn