A littel more details on whats happening. I’ve got a woocomemrce shop setup and ACF_Form to show up on each individual order page on the front and back end through ACF_FORM. Person purchases product and then has to fill out the required information on the order to finish and submit.
After the information is full we don’t want it to be edited without contacting customer support. the call to the product and form is simple as follows
<?php if ($product_id == 263 ) : acf_form(array( 'post_id' => $order_id, 'field_groups' => array( 382 ), 'post_title' => false, 'post_content' => false, 'submit_value' => __('Update Info') )); endif; ?>
Workin great, just don’t understand if I can run a check on the exisiting ACF_form data to see if it’s empty. Is looping through each field first the key and then showing the form if one comes back say empty/false?
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!