How to Manipulate Text (String) with Conditions and Calculation

February 22, 2026

When integrating forms into your existing workflow, you may encounter specific challenges. Let’s take the following example:

Regardless of the use case, understanding how to work with text (strings) can be a significant advantage when building interactive forms. The goal is to apply these techniques to the use cases mentioned above and to use them as building blocks for more dynamic, responsive forms. Ultimately, your imagination and creativity are only limited by how well you understand conditions and calculations.

Want to see it in action? Take a look at this Demo Form.

Generate URL Based on User Input

For this method, add the fields required to build the URL. For example, you can use the Dropdown and Single Choice elements, as shown in the demo form. Also, be sure to add a Short Text Entry field, where the condition will generate and display the URL.

How to Manipulate Text (String) with Conditions and Calculation Image-1

For the conditional logic, you need to first set up the IF statement. You can add both Dropdown and Single Choice elements in it with Is Filled as the State, then choose All from the If Any/All dropdown menu.

How to Manipulate Text (String) with Conditions and Calculation Image-2

For the DO statement, just do it as follows:

How to Manipulate Text (String) with Conditions and Calculation Image-3

As you can see, there are no operators needed between text and form fields. Simply type the text and insert the fields where needed.

https://mydomain.com/checkout.php?prod={addFieldHere}&custom={addFieldHere}

For the Summary, select the Short Text element as the target field, as shown in the above image.

Generate Email Address

Add the elements needed to generate a properly formatted email address. The portion before the @ symbol identifies the mailbox name, which is typically the recipient’s username (for example, johndoe). The portion after the @ symbol is the domain name, representing the mailbox’s administrative realm (for example, example.com, the company’s domain).

In the demo form, the Short Text Entry element captures the name, while the Dropdown element lists available domain options.

How to Manipulate Text (String) with Conditions and Calculation Image-4

For the conditional logic, you need to first set up the IF statement. Add both the Short Text and Dropdown elements with Is Filled as the State, then choose All from the If Any/All dropdown menu.

How to Manipulate Text (String) with Conditions and Calculation Image-5

For the DO statement, just do it as follows:

How to Manipulate Text (String) with Conditions and Calculation Image-6

As with the previous method, there’s no need to use operators to concatenate text or strings. Simply type the values in order—first the Short Text Entry, then the @ symbol, followed by the Dropdown field.

{addFieldHere}@{addFieldHere}

For the Summary, select the Short Text element as the target field, as shown in the above image.

Generate a Comma-Separated Set of Values

Lastly, the same principle applies here. Simply add the required elements and insert a comma between them in the condition, making sure they are rendered as text. In this example, two elements are used: a Single Choice field and a Dropdown field.

How to Manipulate Text (String) with Conditions and Calculation Image-7

For the conditional logic, add all elements with If Filled as the State, then choose All from the If Any/All dropdown menu.

How to Manipulate Text (String) with Conditions and Calculation Image-8

For the DO statement, still add the fields separated by commas.

How to Manipulate Text (String) with Conditions and Calculation Image-9

For the Summary, select the Short Text element as the target field, as shown in the above image.

Notes

  • Any text you manually type in the Calculate screen is treated as text by default and appears with a gray background.
  • Any field you add by clicking Add Field is treated as a number by default and appears with a navy blue background.
  • To switch a field between text string and number (and vice versa), click the 0–9 or A–Z toggle at the end of the field.
  • Pressing the Tab key automatically converts the text you typed into a text/string block.
  • Don’t forget to click Save to apply and save your conditional logic.
Academy Logo

Introduction to Form Building

Adding Conditional Logic Elements

Go to course :Adding Conditional Logic Elements
lesson-2 - image

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Rolando Ferres - Profile picture
  • discoverability diagnostic - Profile picture
  • Alma Institute - Profile picture
  • Kristen Hughes - Profile picture
  • Biswadeep Mukherjee - Profile picture
  • Maxima People & Culture - Profile picture
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.