Not sure but this feels like a bug within the mobile view for input elements.
Scenario 1 - working but partially:
- Had put an input element to “hidden on load” property. Set the value of it through code to be of a particular value. (eg: $w( ‘#textBox1’ ).value = “example”
- In mobile view, it shows up under “hidden elements” section. Form is submitted successfully BUT when the the value of the hidden element does not show up in the database under its corresponding field. It remains blank.
Scenario 2 - not working:
- Unchecked the hidden on load property. Set the hide() property and the value of it through code to be of a particular value. (eg: $w( ‘#textBox1’ ).hide(); $w( ‘#textBox1’ ).value = “example”
- Input element again comes up in the “hidden elements” section of the mobile view, and error comes up as below, due to which the form does not submit.
Scenario 3 - works
- Repeat scenario 2 but have to manually unhide element in mobile view.
- Then have to readjust the page and form again so that the element does not come in the way/shows unnecessary gap between the other elements.
- Form submits successfully and complete data required is there.
I feel like this would be some sort of a bug within the mobile view for Wix. Would request someone check it out or let me know what I am doing wrong. Ideally, if I set the element to hide on load. it should still take the coded value in mobile also I feel.