The Currency component is used when you need to display currency amounts on a form. This component includes a numeric input mask that allows two decimal values and automatically adds commas as a user inputs a currency amount.
Display Tab:
- Label: You can place the title or name in this component.
- Label Position: This setting allows you to adjust the position of the component name and label.
- Label Width: You can adjust the width of the component name and label with this setting.
- Label Margin: This setting allows you to adjust the margins of the component name and label.
- Placeholder: You can place text in this setting, which will appear in the field when it's empty.
- Description: In the description field, you can enter text that will appear below the input field.
- Tooltip: Entering data here will create a tooltip icon on the field.
- Prefix: You can enter predefined text to show before the field.
- Suffix: You can enter predefined text to show after the field.
- Custom CSS Class: With this setting, you can add a CSS class. Multiple classes can be added, and class names can be separated by only a space.
- Tab Index: The Tab Index setting indicates which element in a form can be focused and which can be unfocused. It works as a global attribute and provides three different types of results depending on the integer: Negative Integer (-1) indicates that the elements are unfocused and unreachable by sequential navigation. Zero Integer (0) indicates that the elements are focused and can be reached with sequential navigation. Positive Integer (1) works as the zero integer but in the positive integer, you can set up an order depending on the number.
- Hidden: Enabling this setting will hide your field from viewing when the form is extracted.
- Hide Label: In this component, you can hide the label or name. Sometimes you only need the component field and not the label; hide label is used for that purpose.
- Hide Input: Enabling this setting will hide the data entered when viewing the form in the front-end browser.
- Initial Focus: Enabling this setting can make the field initially focused. Please note that only one field or component can be the initial focus in a form.
- Allow Spellcheck: Enabling this setting will allow the field to mark misspelled words.
- Disabled: Enabling this setting will disable the component from the form.
- Table View: When this setting is enabled, the data on this component will only show up in the submission list of the table view.
Data Tab:
- Multiple Values: Enabling this setting allows you to add multiple values to the field. You can click on the "Add Another" button to add more values, and they will be organized into an array.
- Default Values: The default value (if given) will be the value in the text field unless the user enters it manually. If you use a default value, you can no longer use placeholder settings.
- Persistent: If you enable this setting, your data will not emerge in the properties.
- Currency: With this option, you can select your default currency (e.g., USD, EUR, GBP).
- Input Format: With this setting, you can obtain output from this field in three different formats: Plain, HTML, and Raw (insecure). You can select your desired format.
- Protected: If you do not want to show the input value in properties when queried by the API, you can enable this setting.
- Database Index: If you select this setting, this will create an index within the database which will help to improve performance when queries are submitted.
- Text Case: You can set the text case of the field to mixed, uppercase, or lowercase as the default.
- Encrypted: Encrypt this field on the server. It is two-way encryption, and it is not appropriate for passwords. This setting is only available on the ‘Enterprise’ project plan.
- Redraw On: With this option, you can link or connect another component; you can redraw the component if the other component is updated.
- Clear Value When Hidden: As the name suggests, the value of this field will be cleared if the hidden option is selected.
- Calculate Value on server: As the name suggests, if you select this setting, it will run the calculations on your server.
- Allow Manual Override of Calculated Value: As the name suggests, if you select this setting, it will allow you to override the calculated values.
Validation Tab:
- Validate On: Selecting this setting will determine when to allow the front-end validation of the component. It provides two options to choose from: Change and Blur.
- Required: Enabling this setting will make this component a must, and the user cannot submit the form without filling this component.
- Unique: Enabling this setting will help the user understand that this information is not provided before while submitting the form.
- Error Label: With this setting, you can enter text that will be displayed when the field displays an error message.
- Custom Error Message: In this setting, you can enter the error message that will be displayed to the user if any error occurs while filling out the form.
API:
- Property Name: In this setting, you can provide the name of the field in the API endpoint.
- Field Tags: In this setting, you can enter the tags for the field that can be used in custom logic.
- Custom Properties: In this setting, you can enter any custom properties to configure this component.
Conditional Tab:
- This component should Display: In this setting, you can choose "True and False" to determine if this component should display.
- When the form component: In this setting, you can choose if you want the component to be displayed after it is submitted.
- Has the value: In this setting, you can choose the value of the component when it should be hidden or displayed.
Layout:
- HTML Attributes: In this setting, you can enter HTML attributes for the component's input.