Rules editor: Difference between revisions

Jump to navigation Jump to search
Line 432: Line 432:
The variables in conditions mostly overlap with variables in function steps. Some additional variables exist:
The variables in conditions mostly overlap with variables in function steps. Some additional variables exist:


; Configuration: Use to evaluate conditions related to a user, app, and device.
==== Configuration ====
:{| class="wikitable"
Use to evaluate conditions related to a user, app, and device.
 
{| class="wikitable"
| Configuration.platform || Equals || Android
| Configuration.platform || Equals || Android
|}
|}


; IsLoaded: IsLoaded property checks whether the form or questionnaire is fully loaded and visible on the screen, with all the values assigned. For example, you can use it to differentiate between the initial loading of a form and manual user change.
<code>Configuration.roles</code> allow you to modify the behavior of the app depending on the user role. For example, you can make a form read-only for certain security roles or enable a specific command only for a certain role. Use the <code>Contains</code> operator with roles, and specify either the name or the ID of the security role.
:{| class="wikitable"
 
{| class="wikitable"
| Configuration.roles || Contains || Sales Manager
|-
| Configuration.roles || Contains || c2b83d0f-89b4-e111-9c9a-00155d0b710a
|}
 
==== IsLoaded ====
 
IsLoaded property checks whether the form or questionnaire is fully loaded and visible on the screen, with all the values assigned. For example, you can use it to differentiate between the initial loading of a form and manual user change.
 
{| class="wikitable"
| IsLoaded || Equals || True
| IsLoaded || Equals || True
|}
|}


; Relationship
==== Relationship ====
* The relationship target, in case of questionnaires, gets the object from where you entered the questionnaire from in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record.
* The relationship target, in the case of questionnaires, gets the object from where you entered the questionnaire in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record.
* The relationship source is the record from the form that you opened from the questionnaire. However, opening forms of other records from a questionnaire is very rare.
* The relationship source is the record from the form that you opened from the questionnaire. However, opening forms of other records from a questionnaire is very rare.


Navigation menu