You need to tell how you set above. (Note that readonly attribute can only be used with textbox and textarea, not listbox or combobox. If you set as ReadOnly by server event or use the READONLY option, there is no effect.)
Readonly attribute and input type=“hidden” values will be submitted by browser also. If you set it as Disabled by server event, value will not be submitted by browser. If the input does have value, and you have set it as hidden (with HIDDEN Edit Tag), value will be kept.
Required field is not related to disable/readonly/hidden, if the value is empty, it won’t pass the “required” validation.
thanks for this,
but it looks like there are more inherent issues with disable/hiding fields and losing data with phpM.
this didn’t work. in particular with multi select field and, also on fields that are hidden shown based on a checkbox…
in view- startup code - have code to hide/show 2 fields depending on the value, looks like the hidden field loses its value when you look at the updating function. as well as a multi select field, when clicking save - returns “field required” when the field is set to ->disabled.