Create a mobile UI rule action
Create the actions that execute when your mobile UI rule conditions are met.
Before you begin
Role required: admin
Procedure
Navigate to All > System Mobile > Mobile UI > Mobile UI Rules.
Open the mobile UI rule where you want to add actions.
In the mobile UI rule form, select New in the Mobile UI rule actions related list.
Note: If you don't see the New button, you may be in a difference scope than the UI Rule. Change scopes and reload the form to display the button.
In the mobile UI rule action form, fill in the fields.
| Field | Value |
|---|---|
| UI Rule | The UI rule related to this action. This field automatically populates with the rule that you opened in step 2. |
| Operation | Select the operation that the action performs See the following table for details on these actions. |
| Target | The element affected by the action. The actions available to select depend on the parent selected in your mobile UI rule.- For input form screens, the targets are input form screen inputs - For mobile views, targets are elements from the mobile card template JSON. |
| Order | Order in which the action executes. If there are multiple actions for the same mobile UI rule, the actions execute according to this value. Lower numbered rules execute before higher numbered rules |
| Value | Defines how the action applies to the element in the Target field. This value depends on the selected Operation. See the following table for operation descriptions and the values that they use. |
| Target Mapping | Defines which string input field the generated summary text should be added to when using the Record Summarization operation. |
| Operation | Definition | Values |
|---|---|---|
| Disable Button | Determines whether the button in the Target field is inactive. | Set the Value to true to disable a button or false to enable it. |
| Set Mandatory | Determines if the element in the Target field is required. | Set the Value to true to make the element mandatory or false to make it optional. |
| Set Read-only | Determines whether the element in the Target field is read-only. | Set the Value to true to make an element read-only, or false make the element editable. |
| Set UI Style | Applies UI styling to an element.Note: This operation doesn’t reverse when using Reverse If False on your mobile UI rule. | Use this value to set a background color, font color, and text decorator icon. The value must be in JSON format. This example changes the colors of the background and text: This example sets a text decorator icon.
You can also use color variables to change theming in your mobile UI rules. For details see Color variable support for UI rules. Note:
|
| Set Visibility | Determines the visibility of the element in the Target field is read-only. | Set the Value to true to display the element, or false to hide the element. |
| Simple Arithmetic | Note: This operation doesn’t reverse when using Reverse If False on your mobile UI rule. | Set the Value by creating a mathematical operation using inputs from the input form screen associate with your mobile UI rule. For example, if you wanted to calculate travel costs you could use: In this example, the values in the |
| Time ago | Applies a time indicator to a record, for example "Updated 3 minutes ago" or "Created 2 months ago".Note: This operation doesn’t reverse when using Reverse If False on your mobile UI rule. | The following fields must be set:- In the Operation field, enter
The value displayed for past dates, using
The value displayed for future dates, using
Whether a short or long version of the time format is displayed. This field value is For example, when set to true, '2 minutes ago' is displayed. If set to false, '2 m ago' is displayed. In this example, you see values such as "Expired 5 hours ago" or "Expires in 5 days" depending on the time value. |
| Time and date calculation | Automatically calculates an end time after entering a start time. The end time value can be in the past or the future. For example, you select a meeting to start at 15:00, the default calculation is set to 30 minutes later, so 15:30 displays as the default end time.Note: This operation doesn’t reverse when using Reverse If False on your mobile UI rule. | The following fields must be set:- In the Operation field, enter The duration value is formatted in the following way:
Note: You can’t use month and year in the time and date calculation. |
| Record Summarization | Enables record summarization using Now Assist.Note: This operation requires Now Assist to be configured. For more information, see Overview tab in Now Assist Admin. | In the Target Mapping field, enter the string input field that the generated text should be added to. |