Copying Form controls and Name property
Posted: Tue Sep 22, 2020 1:33 pm
When copying and pasting a form control that has a Name property e.g. Editbox and TextArea the newly created control retains the same Name property instead of using the ID as the Name.
This shows in the email output but particularly in writing records to a MySQL database.
E.g. if you start with Editbox1 and copy it twice so creating Editbox2 and Editbox3 then 2 and 3 will each have a Name property of Editbox1.
The MySQL table will only have one data column with the name EDITBOX1 (from Editbox3 Name property) and contain the data from Editbox3.
This shows in the email output but particularly in writing records to a MySQL database.
E.g. if you start with Editbox1 and copy it twice so creating Editbox2 and Editbox3 then 2 and 3 will each have a Name property of Editbox1.
The MySQL table will only have one data column with the name EDITBOX1 (from Editbox3 Name property) and contain the data from Editbox3.