If your calculator is part of an existing flow of data inputs, there might be times when you want to set the default value of a question based on the data you already gathered from this user. A commonly used example is the email address field, which is sometimes known ahead of time.
ConvertCalculator supports setting these default question values by using query parameters. Here's how it works:
- Go to the question settings you want pre-filled
- In a question's logic settings, toggle on the switch "Set default value from query parameter"
- Fill out the name of the query parameter (e.g., email address)
Make sure you use the query parameter in your link. E.g., https://www.bananastand.com/banana-calculator?emailaddress=michaelbluth@bluthcompany.com
Now when a user clicks on this link, the calculator shows up with the email question pre-filled with "michaelbluth@bluthcompany.com"
- The query parameter is ?emailaddress=michaelbluth@bluthcompany.com
- When you have multiple query parameters, make sure to separate them with the &-symbol. Eg. https://www.bananastand.com/banana-calculator?emailaddress=michaelbluth@bluthcompany.com&name=Micheal
Using the values of a calculator in another calculator
You can use values from one calculator, inputs, and formulas, in other calculators. Please see this example below (which is also available as a template).