RaptureLazarus
5 years agoIdeator I
Client side Form function and script not evaluating correctly.
Good day all.
TL;DR: I am having trouble getting an onLoad method to reliably print an evaluated value to a field.
The form is as follows:
Stock message contains: [embed:dc8ab71f-3b9...
- 5 years ago
Are your fields "string" or "integer" properties? According to your debugger, they look like strings! In this case greater and less may calculate based on wrong values.
Try to parse the value -->
parseInt(minStock, 10)
And maybe use an onFormPopulated event instead of onLoad, when the fields shall also update when user edit the item.