Well, I tried the jQuery method but was running into problems with an error popping up due to the hidden field being required. https://share.cleanshot.com/ND6g06
If you're going to use PHP, there are other hooks you can use to change both the readonly flag and field type at the same time. They are frm_setup_new_fields_vars and frm_setup_edit_fields_vars.
Field type is $values['type'] and readonly is $values['read_only'].
Please login or Register to submit your answer