Skip to main content

Actions related to the form


Form actions are a set of actions that the application takes after the user performs certain actions. Each action is represented by a single button. An action is launched by pressing a button.

You can add actions from the form properties level see Defining actions and events from the Form Properties panel and on the Actions tab.

  1. Go to the Actions tab and the Toolbox panel.
  2. To use an action, drag it from the Toolbox panel to the Buttons and row actions section.

image

Actions are customizable so that you can define the properties of the button and the properties of the action that will be executed when the button is pressed.

Button properties​

All buttons displayed on forms have the following common properties available in the Properties window:

  1. Button text - the label of the button.
  2. Tooltip- text that will be presented in a balloon as a button description.
  3. Visibility- specifies whether the button will be visible, if this value is unspecified then the button will be visible by default.
  4. Button icon - a small icon displayed on the button.
  5. Style - default appearance, there are styles available in the properties that allow you to modify the appearance of the buttons.
  6. Visibility in read-only mode - the property specifies whether the action should be visible to the user when the form is in read mode.
  7. Events - a link to an event handler.

image

Action properties​

You can define action properties similarly to button properties on the Properties panel.

The scope of the displayed data is different and characteristic for a particular action. However, there are some properties that are common for all actions:

  1. Available in read-only mode - the property specifies whether the action should be available to the user when the form is in read mode.
  2. Permission - this property allows you to control the access to the form.
  3. Messages - the ability to configure the content of messages displayed on the Web form.
  4. Confirmation - define the confirmation of action execution display.
  5. Validation - define the validation to be performed when saving the form.

image

Moreover, the properties that are most characteristic and used for a given action are displayed on the workspace next to the action.

  1. Click on a property to change its parameters.

image

Copying, cutting and pasting actions​

Actions, and buttons together with their actions, can be copied, cut and pasted in the action tree of the form designer. The commands are available in the context menu of an action tree node.

image

  • Cut, Copy, Paste and Duplicate – available with the shortcuts Ctrl+X, Ctrl+C, Ctrl+V and Ctrl+D and in the context menu. The copy goes to the clipboard as the form xml holds it, so it can be pasted into another form or another Studio instance. Copy is also available on a read-only form.
  • Paste – the pasted element goes where a drop on the selected node would put it. The designer refuses action types it does not offer. Only the ids that the document already holds are renewed, so cut and paste keeps them.
  • Paste special:
    • In place of the selected one – the pasted element replaces the selected one, keeping how the replaced handler reloads,
    • Without action mappings – offered only where mappings are used (a form on the new data structures).
  • Dragging – dragging with the Ctrl key held copies the element. Nodes from another tree are always copied. A right-button drop asks: move here, copy here, copy in place of this one, copy without action mappings.

See also​

Types of action

Complex action

Event handling