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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5
— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.