0

Is there a way to override a field value with one parsed from URLSearchParams? I'd like to fill an hidden field if a specific parameter is passed by the URL.

E.g. JSON part

{
"type": "text",
"name": "year",
"width": "100%",
"minWidth": "256px",
"title": "Year:"
}

URL similar to xxx.com?year=1999

In this way I'd like to fill year with 1999.

1 Answer 1

1

If you wish to fill the 'Year' input field with a URL parameter value, retrieve a URL parameter value and call the survey.setValue('year', 1999) function to fill a question's value.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for now. I will try as soon as possible. 🙂

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.