Input elements value wiped after page loading

I have a page that allows edit of a database record. An initialization function (called by onReady()) queries the data and populates the input field. Some input fields have custom validating function assigned. During onReady(), all things seem fine and input fields are populated as expected. However when it comes the time to save, validations randomly fail, complaining some fields are being empty. The fields have values loaded from the data record and values are still visible, but console log shows they have empty values. If I put the focus on the said fields and move away, the value then disappear from the text box. The issue happens randomly. Once in a while everything is fine, but most of the time at least 1 field got wiped internally, and the custom validator has debug log showing the validation got triggered with empty values soon after the values got populated during onReady(). I don’t see anywhere that would trigger a wipe out. Please help.

Anybody will be able to help you, without seeing your working (not working) code.
For debugging, you can USE the CONSOLE, this is the best HELPER for doing debugging actions.

Hi! were you able to fix this error? The exact same thing is happening to me with a project right now :frowning:

1 Like