Strange behavior of the Select field
Posted: Fri Apr 26, 2024 8:19 am
On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field.
At first I used json/array of type ['One','Two'] , but after a few days I noticed that fields were selected from the list, but were not saved in the database... When I clicked the Save button, the field with Select was cleared.in the database this field was of type varchar(25)
Then I switched to a new method of selecting from Select like 0|One|1|Two but... another problem appeared - the fields are selected correctly, but when saving, the field (Two) is replaced by One and naturally only 0 is saved in the database.in the database this field was of tinyint type
How to deal with this?
At first I used json/array of type ['One','Two'] , but after a few days I noticed that fields were selected from the list, but were not saved in the database... When I clicked the Save button, the field with Select was cleared.in the database this field was of type varchar(25)
Then I switched to a new method of selecting from Select like 0|One|1|Two but... another problem appeared - the fields are selected correctly, but when saving, the field (Two) is replaced by One and naturally only 0 is saved in the database.in the database this field was of tinyint type
How to deal with this?