Open URL from user input in Survey123

764
3
Jump to solution
02-10-2023 08:36 AM
jose_v
by
New Contributor II

Dear all,

Again, another question from a newbie that may have a quick answer. Would it be possible from within Survey123 to open a URL (through a web browser) using the parameters or data that is present in the fields of the survey?

Thanks so much for your help.

Jose Vasconcelos

0 Kudos
2 Solutions

Accepted Solutions
jose_v
by
New Contributor II

Thanks for your suggestion. I will check it out.

Jose

View solution in original post

0 Kudos
3 Replies
jose_v
by
New Contributor II

Thanks for your suggestion. I will check it out.

Jose

0 Kudos
MaxwellGideon
New Contributor

@jose_v wrote:

Dear all,

Again, another question from a newbie that may have a quick answer. Would it be possible from within Survey123 to open a URL (https://www.handy-reparatur-berlin.com/handyreparatur-haftpflichtschaden.html) using the parameters or data that is present in the fields of the survey?

Thanks so much for your help.

Jose Vasconcelos


Yes, it is possible to open a URL through a web browser in Survey123 using the parameters or data present in the survey's fields.

You can create a hyperlink with parameters that reference the field values in your survey, and then add that hyperlink as a question or a note in your survey. When the user clicks on the hyperlink, the web browser will open and load the corresponding URL, passing in the parameter values from the survey.

To create a hyperlink with parameters, follow these steps:

  1. Create a URL with the appropriate parameters. For example, if you have a survey field called "Location" and you want to pass its value to a web application, you could create a URL like this: "http://www.example.com?location=${Location}"

  2. In Survey123, create a question or a note that includes the hyperlink. To do this, you can use the "hyperlink" appearance for a text question, or simply type the hyperlink into a note question.

  3. Use the ${FieldName} syntax to reference the field values in your survey. For example, if your hyperlink is in a note question, you could type something like this: "For more information, click <a href='http://www.example.com?location=${Location}'>here</a>."

  4. Save your survey and test the hyperlink to make sure it is working as expected.

Note that the syntax for referencing field values in the URL may vary depending on the web application you are using. Be sure to consult the documentation for that application to ensure that you are using the correct syntax.