Switch Toggle
Last updated
Was this helpful?
Last updated
Was this helpful?
The Switch Toggle element allows you to put a single-value radio button to turn on/off.
In the Element tab, the fundamental settings of the element can be configured. The Switch Toggle element has the following attributes in the Element tab:
Name - Title of the element.
Description - Description of the element.
Option Label - Add options for users to choose from.
Option Hint - Write any text to give a hint about the option. Along with the option, there will be displayed a tiny question icon. Users can check the hint by hovering it.
Add New - You can add as many options as you need.
Default Value - The default value field takes inputs after you add option values in Add Radio Options.
Type of Label in Total - Choose how to display the selected option of the field in the Summary.
Show Value - displays the numeric value of the option in the Summary.
The Styles tab is available in the Pro version of the plugin and there you can adjust the appearance of the field. The Switch Toggle contains the following attributes in the Styles tab:
Style - For toggle options, the "Default" and "Boxed with the description" views are available.
Box style - When the "Default" style is selected, the toggle options can be aligned with "Vertical" and "Horizontal" views.
Style preview - A preview of the selected style will be displayed.
Apply this toggle style to all toggle fields in this calculator - When the option is enabled selected style will be applied to all toggle elements in the calculator which is being edited.
The Switch Toggle element has the following attributes in the Settings tab:
Currency Sign - Enable if you want to disable the currency symbol in the total summary.
Required - Defines whether the element will be required to fill or not.
Round Value - Enable if you do not want to round the value to the whole number in the total summary.
Show in Grand Total - Disable if you want to hide the element in Grand Total.
Allowed number of options to select - Ability to set the maximum number of available options to choose from.
Additional Classes - Add extra classes to the HTML elements to further style changes.
This setting allows you to add a measuring unit (Ω, cm, kg, inch, etc.) to the field.
Unit Symbol - enter the unit symbol
Position - select the position where the symbol should be displayed relative to the number
Thousands separator - select the symbol to
Number of decimals - indicate the number of decimals in the fractional part
Decimal separator - select the symbol to separate the fractional part
Let’s see an example of the Switch Toggle in the School residential payment template. It will be used for users whether they want to have insurance or not.
That’s how it will look on the user’s page:
Option Value - Assign a numeric value for the option. This value can be used in calculations in .
Label Only(No calculation) - Displays the label of the options, and the value of the selected option will not be included in Calculations. It is useful when the field is used to create conditions.
Label Only(Calculation Value) - Displays the label of the options, and the value of the selected option will be included in Calculations.
Hidden by Default - The element will be hidden until a corresponding is met. If the element is hidden, its default value will be counted as '0' in the formula
Calculate hidden by default - If any case hides the element via the Hidden by Default setting or hidden by some , the element's default value (if it is set) will be counted in the formula.