![prefill search form scriptcase prefill search form scriptcase](https://colorlib.com/wp/wp-content/uploads/sites/2/bootstrap-search-box-3.jpg)
The steps to take to prefill with a value from the query string. That's it! Now the form will use the value that's entered in the URL as the default entered text value. In this case we want to use the value of parameter name. Now enter the query string parameter that you want to use the value of.Now select From query string as the desired value.In our example form this is a text (single line) question type Next select the Name question from the form.Just click the button at the bottom of the Values list again We can use the same set value block to prefill multiple question blocks.Our form URL for example looks something like this: ?name=Julie. In this example we want to prefill our 'Name' question with a value that we collect from the query string of the form URL ( what's a query string?).
![prefill search form scriptcase prefill search form scriptcase](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/10/aaaaaaaaaaaaaaaaaa-1024x380.png)
The steps to take to prefill with a static value. That's it! Now the form will always select 'New York City' as the default selected option. Now select the right value from the dropdown options, in this case we select New York City.Now select Fixed value as the desired value.In our example form this is a dropdown question type Next select the City question from the form.In the set value block click the button at the bottom of the Values list.In this example we want to prefill our 'City' question with the fixed value 'New York City', as we know most of our respondents live there. Prefill with a value from the query string.
![prefill search form scriptcase prefill search form scriptcase](http://www.gemini.edu/files/styles/hd/public/gallery/20190/20100422ngc1313legacy.jpg)
Per row in your list you can determine how you want to prefill that, for example: Now you can make a list of question blocks that you want to prefill with a certain value. A form setup with an empty set value block with purpose Prefilling.
#PREFILL SEARCH FORM SCRIPTCASE HOW TO#
If you want to update blocks that already have a value, please have a look at this article: How to update values throughout your form. It's important to know that prefilling only works for blocks that don't have a value yet. Set that to Prefilling and the builder will make sure all settings are configured correctly for you.
![prefill search form scriptcase prefill search form scriptcase](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/project/values_dft/vle_05.png)
In this case we add that block at the start of our form, so all our blocks will become prefilled when the respondent opens the form. Add set value blockįirst build your form with the question blocks you want to prefill.Ĭontinue with adding a set value block. For global instructions about the set value block, please have a look at this article. In the article you're reading now we describe how to prefill values in your question blocks. Demonstration of prefilling a question block from the URL ( ?name=Julie). You can now use that value from the URL to prefill in the 'Name' question The name is part of the form URL that you have sent them.