Perhaps, let me try and share some more insight, I have a front end form which people fill in to customise a profile on the front end too. I would like the https://instagram.com/ to be filled in the field before they even touch the form but not visible. So I can then label the field “instagram username” when they put there username in it creates the value https://instagram.com/username for a button to be clicked and redirected to their instagram profile.
Thanks for confirming John, still no luck for me unfortunately.
Hi John, I am adding the following to my theme functions file but not having much luck.
function my_acf_prepare_field( $field ) {
// Lock-in the value "https://instagram.com/".
if( $field['value'] === 'https://instagram.com/' ) {
$field['readonly'] = true;
};
return $field;
add_filter('acf/prepare_field/name=instagram', 'my_acf_prepare_field');
}
Is it because I am using the ACF Frontend plugin?
Thanks in advance
Thanks John, I had wondered if this was the answer to my question in research. So thanks for confirming.