Applications → Working with Forms → Customizing Forms → Managing Form Behavior → Using Form Actions → Working With Form Actions
Use the Form Actions dialog to action expressions that define events, conditions, and actions that result in dynamic behavior.
Consider the following information as you work with form actions:
You can, however, set the value for User and Multi-User fields to the "current user" if the user is a valid value for the field. This includes User and Multi-User fields that are searchable. If the current user is not a valid selection, the action is ignored.
To add or edit a form action:
If you create multiple conditions within a single section, by default, the statements are connected with AND logical operators. To switch to OR logical operators, hover over the section, select the down arrow that appears at the top right of the section, and then select 'Or Conditions'. To switch to AND logical operators, select 'And Conditions'. All conditions within a single section will use the logical operator you selected; you cannot combine AND and OR logical operators within a single section.
If you create multiple events within a single section, the statements are connected with OR logical operators.
In some cases, a dialog box prompts you to provide additional information. The following table describes the dialog boxes.
Link Text | Description |
---|---|
a regular expression | Select Custom and enter the regular expression in the box; or select a predefined expression, such as Match an email address. Select the Ignore case check box if you want to make the regular expression case insensitive. |
a time | Select Specific time and enter or scroll to the appropriate time; or select Now. Click Clear to remove your selection and return the time to its default value. |
a color | Select a color from the color palette. Click More Colors for additional colors and the ability to use the RBG model to specify numeric values. To reopen the palette and change a color, click the RGB value in the statement. |
a string | To display specific text, enter the
text.
To use an empty string, select Empty string. |
a value | The dialog box depends on the design
element. For example:
|
You can copy expressions within a form action and then modify them. For example, if you have an expression that enables certain fields depending on the value of a selection field and you want other fields to be enabled when the selection field contains a different value, you can duplicate the expression and modify the condition, action, or both as needed.
To copy an expression:
Copyright © 2007–2016 Serena Software, Inc. All rights reserved.