Disabled radio buttons wipe out data for field on save

kgriffin 19 Feb, 2021
HI-

I had disabled radio buttons on a form so that people could see the data, but not edit it. However, after saving the form, exiting out of that entry and returning to it, the data for that field would not be there. I looked in the db and it turns out the data for that field was deleted. I tried to rectify the situation by adding "Save Data" to the disabled radio button, but that made no difference.
Max_admin 20 Feb, 2021
Answer
a disabled field will send an empty value, so this is an expected result!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 21 Feb, 2021
Hi kgriffin,

If you want it so that the previous data can be re-submitted then use read-only and not disabled.

Bob
kgriffin 07 Apr, 2021
Thanks, but I tried read only first, but that did not work for radio buttons, which is why I went with disabled. I just created html fields instead for the data controlled by radio buttons.
You need to login to be able to post a reply.