recalcRulesets()
The recalcRulesets() function (client-side) performs three main tasks. First, it updates information about questions and answers in before-event actions by verifying which questions and answers are visible or hidden based on their rule. Second, if the Reset when hidden option is enabled on the question or answer record, the function also clears answers when they become hidden or their corresponding question becomes hidden. Lastly, it updates information related to building blocks, such as additional items, materials, and routing steps.
Syntax
Use this syntax for the recalcRulesets() function:
recalcRulesets();
Return Value
The recalcRulesets() function returns a promise that resolves to an object. The object includes an array for each building block type containing the list of active building blocks. A building block is considered active when its rule matches the options selected by users on the product interface.
Parameters
The recalcRulesets() function doesn't require any parameters.