Forums

radiobutton name/rename

carthie 23 Jun, 2009
Hi,
I designed a form with wizard including some radiobuttons. The system gaves automatically name like radio0, radio1, etc...

I do not changed the name of each button inside the source code, to stay closer with the wizard editor.

Later I linked the form with a data table, using the "createtable" page.

I tested all, everything working. But looking inside the datas, I saw for each button that the name stills radio0, radio1 like it was created. hum , normal... But as I want to use the result of my form clearly, I would be glad that the name was in relation with the "label name" I gave during the wizard procedure. you see😉

I verified the possibility the edit and change manually the name of each radiobutton in my form, but I couldn't because there is no option to do that under the wizard editor.

I think I must change all the radio button names manually in the source code (with a text editor), than find how to erase/deleted the wrong table, then to start the procedure again "create table" + DB linking + tests.

- do you agree with that ?

- and I hope later, if I need to use "wizard edit" again the name will have no change. beacause I tested for one button, and the name was resetted to default "name#", erasing the modification doned in the source code.
carthie 23 Jun, 2009
what I did :
- modify the source code using external text editor
- replace name="radio#" by name="name_of_radiobutton"
- copy paste the modified code inside the Form Code
- erase wrong older database table using phpmyadmin
- create new table from the last From version inside chronoengine
- DB link to the new table for the form
- do the same change inside the mail templates {radio#} becomes {name_of_radiobutton}

Now everything runs !

I just must remember that I couldn't use the "edit wizard" anymore without the risk to erase my form names.
This topic is locked and no more replies can be posted.