Articles on: Logic

How to Create and Use Variables in Your Form

Follow the steps below to create a variable in your form using Yay! Forms:

Navigate to the question where you want to insert the variable.
On the right-hand side of the screen, you'll find a tab called "Logic". Click on this tab and then click on "Variables". Click "Add variable" and insert as many variables as you'd like.





When you add a variable, you will see that there are three types of variables:

Number: a variable type that accepts numbers, which allows you to add, subtract, multiply, divide, and replace the variable's value in the question's logic section.
Text: a variable type that accepts text, which allows you to replace the variable's value in the question's logic section.
Yes/No: a variable type that accepts true or false values, which allows you to replace the variable's value in the question's logic section.



Note: The option to replace a variable means that you will change the variable’s value if the condition is met, regardless of its previous value.

Follow the steps below to use a variable as a mention in your form using Yay! Forms:

Navigate to the question or screen where you want to insert the variable.
Start typing the name of the variable you want to use, but don’t forget to start with the @ symbol. For example: @score
Once the variable is inserted, the value will automatically be filled in the form when the user reaches the desired screen.

Updated on: 25/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!