--- title: "Text- und Zahlenfelder für Ergebnisseite erstellen" slug: "text-und-zahlenfelder-für-ergebnisseite-erstellen" updated: 2024-10-16T12:13:36Z published: 2024-10-16T12:13:36Z canonical: "help.foxbase.de/text-und-zahlenfelder-für-ergebnisseite-erstellen" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.foxbase.de/llms.txt > Use this file to discover all available pages before exploring further. # Create text and number fields for result page In this article you will find actions that you can use to create fields on the result page. After configuration, the fields contain numerical values, calculation results and/or texts. These are listed in the user interface of the rules under **Select an action > Result field action**. In der Benutzeroberfläche der Rules sind diese unter **Select an action > Result field action** aufgelistet. > [!NOTE] > 💡All actions in this article create a so-called global field. Global fields are **not product-specific**. This means that the contents of these fields do not vary depending on the product recommendation, but are standardized or global for all products. > > 💡Check out the related article to learn more about the **principle of conditions and actions**. --- ### **Create text: Set a result field to a text** **1) Simple text** **Action:** Create a field with a fixed text for the result page. 1. Click on **Select an action > Set a result field to a text**. 2. Enter the name of the field under **add global field**. > [!WARNING] > ⚠️When entering a name into **add global field**, avoid spaces and special characters. Underscores and hyphens are allowed. 1. Enter the desired text under **Type in your text**. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/rules-set-result-field-to-text-1.png) **2) Text field with dynamic number or text input** **Action:** Create a field for the result page with a text that contains the individual user input from a number or text input field. 1. Click on **Select an action > Set a result field to a text**. 2. Enter the name of the field under **add global field**. > [!WARNING] > ⚠️When entering a name into **add global field**, avoid spaces and special characters. Underscores and hyphens are allowed. 1. Enter the desired text under **Type in your text**. 2. Select the desired **number** or **text input field** from your questionnaire under **Other values > Answer value**. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/image(77).png) After you have added the field to the result page (see related article), your text appears on the result page with the input from the questionnaire, which changes dynamically depending on the input of the selector users. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/rules-set-result-field-to-text-2.png) **3) Text field with calculation result** **Action:** Create a field for the result page with a combination of text and the result of a calculation. 1. Click on **Select an action > Set a result field to a text**. 2. Enter the name of the field under **add global field**. > [!WARNING] > ⚠️Vermeide when entering under **add global field** spaces and special characters. Underscores and hyphens are allowed. 1. Enter the desired text under **Type in your text**. 2. Start the calculation by entering the function **math()**. 3. Enter the desired calculation in the brackets. See the list of mathematical operators in this article. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/image(78).png) > [!WARNING] > ⚠️ **Note: Configuration of comma values** > > Use a point for comma values, e.g. 0.2 and **not** 0,2. After you have added the field to the result page (see related article), your text appears on the result page with the input from the questionnaire, which changes depending on the input of the selector users. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/rules-set-result-field-to-text-3.png) --- ### **Perform calculation: Set a result field to a calculated number / value** **Action:** Create a field with a number or the result of a calculation. 1. Click on **Select an action > Set a result field to a calculated number / value.** ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/image(73).png) 1. Enter the name of the field under **add global field**. (Avoid spaces and special characters. Underscores and hyphens are allowed). 2. Enter the desired number or calculation in the gray field on the right (note the list of mathematical operators in this article). > [!WARNING] > ⚠️ **Note: Configuration of comma values** > > Use a point for comma values, e.g. 0.2 and **not** 0,2. ### **Use number input from questionnaire in calculation** In order to use a numerical value added by the selector user in the questionnaire in a calculation, you must integrate the corresponding Number Input Field into the calculation. Click on **Answer value** under **Other numeric values** and select the desired answer from the dropdown. ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/rules_calculation_with_user_input.png) > [!WARNING] > ⚠️ **Note: Only select responses with Number Input Fields** > > For calculations, you can only select the input from number fields (response type: Number Input Fields). All other question types are not supported in mathematical formulas. ****Example: Calculation with Number Input Field**** In the following example, the amount of wall paint required is calculated as a function of the wall area. 1. Click on **Select an action > Set a result field to a calculated number / value.** 2. Enter the field name *color-amount* under **add global field**. 3. Start the calculation with an open bracket. 4. Under **Answer value**, select the answer *Enter wall size in square meters*. 5. Complete the remaining calculation: **0.2)/15* (0.2 stands for the amount of paint required in liters per square meter and 15 for the size of the paint bucket in liters). ![](https://cdn.document360.io/28f4eaf7-083b-49e6-bc8f-1a791499f2fe/Images/Documentation/rules_calculation_example_1.gif) #### **List of mathematical operators and functions** | **Operator / Function** | **Meaning** | | --- | --- | | ( | Open parenthesis | | ) | Closed parenthesis | | + | addition | | - | Subtraction | | * | Multiplication | | / | division | | math( ) | Starts a calculation* | | min() | Reflects the minimum** | | max() | Returns the maximum** | | round() | Rounds the result to the nearest value** | | floor() | Rounds the result to the next lower value** | | ceil() | Rounds the result to the next highest value** | *Can be used in the actions **Set a result field to a number / calculated value** and **Set a result field to a text**. **Can be used in the action **Set a result field to a number / calculated value.** ## Related - [Show result field on result page](/felder-auf-result-page-anzeigen.md) - [Use cases & principle of conditions and actions](/use-cases-wenn-dann-prinzip.md)