David Tsai
Hi-
I’m noticing that in my coaches, anything that is Integer control, if the user doesn’t enter anything, its defaulting the field to 0. Is this a bug or intended behavior? I’m trying to check if the field is null to see if the user entered something or not, and the business doesn’t want it to default to 0 if nothing was entered, but instead throw a validation error (validations done via inline javascript)
Thanks
Dave
SPARK Support
Hi David,
It appears that this is new behavior with BPM UI. If the control is bound to an Integer variable, the value will be defaulted to 0 whether I set a default or not. Notice in the first screen shot, the unbound control defaults to a null value. However, I can override this behavior by implicitly calling setData(null) on the Bound control.
Regards,
Stephen P.