Home > Forum > Forms > Turn off part of a rule?

Turn off part of a rule?
0

May be a sily question, but... is there a way to turn off parts of a form rule? It would be nice to stop some elements (formulas) from working for debugging reasons. Now to do that I have to delete these parts. Am I missing something, is there w way to do that?

MVP

Hi Michał,

depending on your experience with JavaScript debugging you have different options each one requires a bit more knowledge about it:
1. Create an if then like in the attached image, to conditionally execute parts of the rule
2. Use it as a "standalone" rule in a single line and just trigger the debugger if developer tools are open. This will require less changes to the actual rule.
3. Click on Show in the expression editor, change the relevant parts and execute it in the console of the developer tools.

If then rule:

if (new URLSearchParams(document.location.search).get("debug") == RULEPARAMETER or fixed value 'debugThis') {
return true;
}
return false;

Start debugger only rule
if (new URLSearchParams(document.location.search).get("debug") == RULEPARAMETER or fixed value 'debugThis') {
debugger;
}

Best regards,
Daniel

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.