Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
Master
Description
Steps to Reproduce:
- Add a new Form
- Add 4 numeric fields
- Num1, Num2, Num3, Num4
- Add a 5th numeric field for "Total"
- Save form
- Go to Rules
- Add a new rule:
- If Num1 is not empty
- Calculate (Num1 + Num2 + Num3 + Num4) * 0.25 into "Total"
- Save Rule
- Attempt to Save Form
Expected Result:
Form will save or give a helpful error message to the user due to expression being unsupported.
Actual Result:
Form fails to save with generic error message, Rule is lost. No error in the console.
The save failure becomes more likely if the user is using multiple fields (3+) combined with static values in the expression.
Examples of working expressions:
(Num1+Num2+Num3)*Num4 (Num1+Num2)*9.8 (Num1+Num2+Num3) (Num1+Num2+Num3)+Num3 (Num1-Num2*Num3)+Num3 (2+3+6)-Num1 (Num1 * Num2) (Num1 * Num2) + Num3 (Num1 + 0.25) (Num1 + Num2) * Num1
Examples of expressions that cause a silent save failure:
(Num1 + Num2 + Num3 + Num4) * 0.25 (Num1+Num2+Num3)*3 Num1+Num2+Num3*3 (Num1+Num2+Num3)-3 (Num1+Num2+Num3)+3 (Num1-Num2*2)-Num3 (Num1 * Num2) + 0.25 (Num1 * Num2)*0.25
Attachments
Issue Links
- Testing discovered
-
LPS-83608 Unhelpful error message given when user attempts to save form with an invalid rule
- Closed