Form: Difference between revisions

Jump to navigation Jump to search
393 bytes added ,  10 October 2022
Line 336: Line 336:
== Additional form components ==
== Additional form components ==
{{Anchor|Button}}
{{Anchor|Button}}
; Add Button: Click to add a new button to an existing tab. Modify the '''Click Text''' property to change the button text.
; Add Button: Click to add a new button to an existing tab.
: Use [[Rules_editor#Cell_Click.2C_Button_Click_variables|'''Button Click''']] to set up the action or command associated with the button. The following example shows or hides the map tab of your form:
:* Modify the '''Click Text''' property to change the button text.
:{| class="wikitable"
:* Optionally, set up also the '''Label''' property. Usually, extra labels are unnecessary for buttons, and they are hidden by default styles (the style called "Button"; Label position = Hidden).
:* You have two options for setting up the button action:
::* Double-click '''Command''' to select a [[Form#Add_commands|form command]] from a list, or enter a command name directly.
::* Alternatively, use [[Rules_editor#Cell_Click.2C_Button_Click_variables|'''Button Click''']] to set up custom action associated with the button. The following example shows or hides the map tab of your form:
:::{| class="wikitable"
| '''If''' '''Condition''' || ChangedItem || Equals || Button_show_hide_map
| '''If''' '''Condition''' || ChangedItem || Equals || Button_show_hide_map
|-
|-

Navigation menu