The text input component allows users to enter simple text data.
Component configuration options
General
Property | Description |
Title | Name of the component. |
Placeholder | The placeholder text can prompt users on how to interact with the component while it's empty. |
Required | When enabled, a red asterisk will appear next to the component name, indicating that the user must enter a value before submitting the task. |
Advanced
Property | Description |
Default data | Automatically populate the component data from a variety of sources. For more information about the default data options available, please refer to the sections 'From this Workflow,' 'Asset Property,' 'Custom Data,' and 'Calculation' below. |
From this Workflow | Note: this is a default data option
Choose a component that, when its value is entered, will populate this component.
You can only select components that are in the current or previous tasks. You can also only select components that are the same type as this component.
When the linked component has data entered into it, the data will also populate this component. |
Asset property | Note: this is a default data option
Choose an asset search component that, when an asset is selected, the relevant asset property will populate this component.
You can only link to asset search components that are in the current or previous tasks. You can only select properties from the selected asset type that are the same type as this component.
When the linked asset search component has an asset selected, the data from the relevant property within the selected asset will populate this component. |
Custom data | Note: this is a default data option
Custom data allows you to set your own custom value.
After selecting the custom data option, you can enter a value into the component within the workflow builder interface. |
Calculation | Note: this is a default data option
The Calculation feature looks at other components in the workflow and does calculations with them.
You can reference a component by putting its data path in curly brackets {}.
To find a data path for a specific component:
1. Open your browser's developer tools.
2. Go to the network tab and refresh the page.
3. Check out the response to the https://api.idiana.io/api/flow/{guid}?v=latest.
4. Find the component under "layoutProperties."
5. Find the component you need by matching the "displayName" in the response to your component's title.
6. Once you've found the component you want, grab the data path from the "dataPath" property (no quotes needed).
Remember, the data path depends on the current task, section, and component names. If those change, update the data path in your calculation.
Calculations:
- Operators: You've got all the usual ones (+, -, *, /, ^, %), plus more listed here: https://mathjs.org/docs/expressions/syntax.html.
- Functions: The Calculation feature also supports any functions from math.js. Check out https://mathjs.org/ for more details. Note: If you're using math.mean(), just type =mean() in the calculation field, not =mean.mean().
Examples:
Want to add two numbers with an operator?
={task.section.componentOne} + {task.section.componentTwo}
Need to find the mean using a math.js function?
=mean({task.section.componentOne}, {task.section.componentTwo}) |
Read only | When enabled, users can’t edit with this component from within a work item. |