Form field named status

Anyone noticed a weird anomaly when using a form field name of status ??

Give us a clue…

if you have a form field called status, set it’s value via setValue(…), submit the form. Then try and changes it’s value and re-submit the form (without a page refresh). The status field never updates beyond first being set. Rename it, it’s fine. A weird one …

It’s probably because the form the input is inside has a property of status so it clashes with the field name as the dmx values are just javascript variables.

form1.status can’t be the form’s status and the input simultaneously

It will be something like that - just trying to debug that issue would be a minefield of impossibility if you didn’t change the field name

1 Like

STATUS is a reserved word in MySQL. See
https://dev.mysql.com/doc/refman/5.7/en/keywords.html#keywords-5-7-detailed-S

I don’t use mySQL but this is entirely a front end issue. Scoping issue in JS as outlined probably

Sorry, I thought I would chime in without the proper knowledge.