Home › Forums › ACF PRO › Get the ID of acf-form() submit in ajax call › Reply To: Get the ID of acf-form() submit in ajax call
Is this for a new post? If it is, then there is no post id value. For new posts this value is created by ACF using a built in acf/pre_save_post filter or by a custom filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/.
The only time that the post ID value will be set is for an existing post and that should be part of the submitted values.
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.