In reply to: Daniel Krüger (Cosmo Consult)
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
Hello Daniel,
I've got quite a lot of experience with Javascript, so if I used the extended editor I would know what to do. However ,whenever it is possible, I prefere the standard low-code mode. I thought of something similar to actions - when you click RMB, you can either activate or deactivate it. The same would do the trick anywhere in the business rules , form rules editors, and other similar places.