Here is my situation:
1.There are two kinds of post status,one is “A”,the other one is “B”.
2.There is a custom textarea field(created in ACF) called “test”(its id is “acf-test”:wink:
3.I want to set this condition:
if the post status is “A”,then “test” field can be edit;else, the “test” field will be set as “read-only”.
4.I found this data:http://www.elliotcondon.com/conditional-logic-for-advanced-custom-fields/
But it had some problem while working.Its ACF version is 3.3.1,but I’m using the ACF of 4.3.5,the ‘acf_head-input’ should be replaced as ‘acf/input/admin_head’.
However,I still can’t write the right code of my siuation.
Please help me.
The code of seting elements “read-only” is :
And the get_post_status code is:
$post_status = get_post_status();
However,I can’t combine via jquery.