Jump to content

On Delete: Difference between revisions

From Resco's Wiki
Marek Rodak (talk | contribs)
Created page with "{{Rules TOC}} {{WIP}} <span style="float:left; padding-right:10px">100 px</span> Rules are client-side scripts (no-code business logic) that are exe..."
 
Marek Rodak (talk | contribs)
No edit summary
Line 15: Line 15:
*User needs to enter data about more than one result of the same issue (checking 10 identical parts of a machine)
*User needs to enter data about more than one result of the same issue (checking 10 identical parts of a machine)
*User needs to enter multiple pictures of the same object
*User needs to enter multiple pictures of the same object
==Example: Repeatable group counter==
Each instance of the repeatable group in the questionnaire is counted. The result is displayed on the questionnaire report.
Add a new question group and add whole number component. 
[[File:OnDeleteExampleconclusiongroup.PNG|600px]]
[[File:OnSaveCounter.PNG|600px]]
[[File:OnDeletecounter.PNG|600px]]
[[File:OnRepeatcounter.PNG|600px]]
[[File:OnSaveConclusion.PNG|600px]]

Revision as of 07:54, 1 December 2022

Warning Work in progress! We are in the process of updating the information on this page. Subject to change.

Rules are client-side scripts (no-code business logic) that are executed when a user of the mobile app interacts with the app. The On Delete rules are executed when an existing instance of a repeatable group is deleted. Rules are managed using the rules editor.

On Delete rules are available for the following components: Questionnaires

Repeatable group

On Delete rules are only applicable to Repeatable groups. Questions are usually organized into groups. Instead of creating a questionnaire with the same set of questions multiple times, repeatable question groups offer the ability to repeat the grouped questions either arbitrarily (not known beforehand) or precisely specified number of times. Group can be set as repeatable in questionnaire properties.

Repeatable question groups are useful in cases such as:

  • User needs to enter multiple addresses
  • User needs to enter data about more than one result of the same issue (checking 10 identical parts of a machine)
  • User needs to enter multiple pictures of the same object

Example: Repeatable group counter

Each instance of the repeatable group in the questionnaire is counted. The result is displayed on the questionnaire report.

Add a new question group and add whole number component.