Hi Team,
I have set below structure for users to input several fields, and provide a total using Field Definition Rules with "set expression" to calculate total. The total can be successfully calculated in the beginning.
However, the problem is that if user updates any field with "backspace" instead of input "0," the "set expression" rule seems can not work and will return below message:
"COM.VERTUNA.CONFLUENCE.PLUGINS.CONFIFORMS.UTIL.EXPRESSION$EXPRESSIONEXCEPTION: TOO MANY OPERATORS OR FUNCTIONS AT: +"
It is weird because if user input "0," then the total can be calculated correctly. I have tested multiple times, and seems only "backspace" would cause the calculation fail.
Could you advise?
Ps. The structure:
- Field A: $user input amount
- Field B: $user input amount
- Fied C: read-only to display calculated result
- Rule 1 for Field A (calculate total when there is input):
condition = empty
action = set expression
value = Field C = [entry.Field A] + [entry.Field B]
- Rule 2 for Field A (put "0" when there is no input):
condition = empty
action = set value if empty
value = Field A = 0
Rules on Field B is similar to on Field A.