Design new types of JavaScript rules

Rule designers can now create two different types of custom rules. Additionally, they can also allow site users to edit a form while the rule associated with that form runs.

Select a value in a drop-down question

A rule designer can now create a custom rule to set values for drop-down questions and decide whether certain dynamic questions for forms should be displayed, based on the previously selected answer. For example, this type of rule can be configured in a way that will only show a specific form or question based on the calculated and selected value for a drop-down question.

Execute a rule in different visits

A rule designer can now create better and smarter rules for questions associated with multiple visits. When a rule is created against a question in a form, and that form is associated with multiple visits, the rule can be executed in a certain way for some visits. For example, this type of rule can be configured in a way that will only raise an automated query against the question associated with certain visits in a study, not all visits.

Allow site users to edit a form while a rule runs

When creating a rule, rule designers can now specify that the running of a custom rule should not block a site user from editing or saving the form with which the rule is associated.

On the Rule Editor dialog, you will notice the new Unblock Form toggle. Turning it on allows a site user to edit or save a form while a rule is running. The time it takes for the rule to run depends on the complexity of the rule. And while site users can still enter values and save the form, some form updates generated by more complex rules might be delayed and only appear after a page refresh.