Home › Forums › Backend Issues (wp-admin) › Generating multiple forms on the same page (and saving them) › Reply To: Generating multiple forms on the same page (and saving them)
Oh , you’re right , i tried it only for one variation , since we’re dealing with variable product then field ids should be different.
My guess is you should do it dynamically some how
I mean you should create dynamic custom fields which is not possible with ACF (normally).
What you’re trying to do requires some programming. my solution to this is :
add an html field to variations box like this :
<input type="text" name="myfield_<?php echo $variation_id; ?>">
in this way all fields combine with $variation_id
so they wont be the same any more
And to save the fields you can use save_post
action
http://codex.wordpress.org/Plugin_API/Action_Reference/save_post
I hope this will help
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.