Hi guys
I have searched for a while, and have come across several very old threads about making text fields read only but no definitive answers.
I have a text field in a repeater, so is a sub-field, and I have no idea how to make this read-only, I want admin to be able to edit it, but users not to have control over it. The thread i’ve found also link to https://www.advancedcustomfields.com/resources/acfload_value/ which doesn’t seem to exist any more.
Any help is appreciated.
Thanks
You can use either acf/load_field https://www.advancedcustomfields.com/resources/acf-load_field/ or acf/prepare_field https://www.advancedcustomfields.com/resources/acf-prepare_field/. I would go with acf/prepare_field. In the filter check the role of the current user and if not an admin then set `$field[‘readonly’] to false. The page you refereed to is moved to here https://www.advancedcustomfields.com/resources/acf-load_value/