auto_stories Knowledge Base chevron_right Form chevron_right Article

Switchv5

It is a form control used when a value to be collected on a form page has two possible options.

Its most common uses are: Yes - No, Approve - Reject, Active - Inactive.


Appearance in Toolbox

Appearance in Free Form

Appearance in Responsive Form

Appearance in Flexible Form

 

 

 

 

 

 

 

 

 

 

 

Compatibility

Free Form

Responsive Form

Flexible Form

Mobile

 

 

 

 

 

 



 

Switch Control Properties

Type: Shows the field type of the added form control. The value in this field cannot be changed.

Name: The name of the field that will be created in the database is entered here.

Field Type: This property determines how the state of the Switch control is displayed.

  • No Text: Switch states are shown only with color. When the user clicks the switch, the color changes according to the state: Green: Active (On) / Red: Passive (Off)
      
  • Text: Switch states are displayed as text. When the user clicks the switch, no color change is applied. Yes: Active (On) / No: Inactive (Off)
   

Default Value: The value entered here is displayed as the default value on the Client screen.

Help Text: The text entered here is shown as a description when the mouse hovers over the form control.

 

mceclip3.png

 

Height:Adjusts the height of the form control (the width field has been removed in Responsive Forms).

Linked Object: Used to retrieve values from an object element created with the Create New Data Object action. When the object element is executed, the information is populated according to the object fields.

Linked Object Area: Allows selection from the fields within the linked object area.

Click to go to the Create New Data Object action..


Checked Text: When the Field Type is set to Text, the text entered in this field is displayed when the switch is checked (active).
Unchecked Text: When the Field Type is set to Text, the text entered in this field is displayed when the switch is unchecked (inactive).

   

Pin Right: Fixes the form tool to the right side.

Display: Prevents the form tool from being shown on the client screen.

Form Only: Ensures that data entered into the form is not saved to the SQL database and exists only within the form. Any later changes made here do not affect the database.

After selection and saving, the value is stored in the database as 0 or 1.

 

Actions available within the Switch tool
On the form page, different actions are available for each added form element. To view the actions defined for the Switch tool, first select the Switch tool and then open the Actions menu located in the right panel.

On Value Change: Triggered when the value inside the switch field changes.