Support

Account

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.