Home › Forums › Front-end Issues › How to make a shape at the front with _acf_screen value post? › Reply To: How to make a shape at the front with _acf_screen value post?
I update my notes from the front with REST API using POST query, by sending data like this in a request:
{
data: {
'_acf_nonce': acf_nonce_field, // here is the value of the input from the field
'title': title_form,
'content': content_form,
'status': status_doc,
'fields': {
'version': ver,
}
if the field _acf_nonce is missing, then the post will be updated but the acf field is not updated 🙁 in my case this is the field version
if you match the value that I take from wp/admin/post.php, then the version field will be updated! but how do i get it 🙁
<div id=”acf-form-data” class=”acf-hidden”>
<input type=”hidden” id=”_acf_screen” name=”_acf_screen” value=”post”>
<input type=”hidden” id=”_acf_post_id” name=”_acf_post_id” value=”694″>
<input type=”hidden” id=”_acf_validation” name=”_acf_validation” value=”1″>
<input type=”hidden” id=”_acf_nonce” name=”_acf_nonce” value=”0135d4e496″>
<input type=”hidden” id=”_acf_changed” name=”_acf_changed” value=”0″>
</div>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.