Home › Forums › ACF PRO › ACFpro frontend form missing hidden input "return" › Reply To: ACFpro frontend form missing hidden input "return"
ACF PRO serializes all the form data into 1 hidden input which prevents the ability to modify such data. This is a security measure which is now hindering your functionality.
Looking at the acf_form_head()
function found in api/api-template.php
, you can see that the form data is posted via $_POST['_acf_form']
.
An easy solution would be to use PHP BEFORE the acf_form_head call, and modify the $_POST['_acf_form']['return']
data. You will not be able to do this with JS alone, but can do it all with PHP.
Hope that helps.
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.