Home › Forums › Front-end Issues › Frontend Form with particular fields inside repeater › Reply To: Frontend Form with particular fields inside repeater
There isn’t a safe way to do this on the front end except with CSS or JavaScript. The reason is that if the fields are not there and the person reorders the rows then the order of the fields that are not shown will not match the order of the fields that are shown after updating.
If you use JavaScript to disable the reordering of the fields you can do this with a PHP filter. This can be done using acf/prepare_field https://www.advancedcustomfields.com/resources/acf-prepare_field/ Usage #4: acf/prepare_field/key={$field_key} – filter for a specific field based on its key. Just return false
from your filter for the fields that you don’t want shown.
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.