• Resolved saxcbr

    (@saxcbr)


    My form has 2 row of input in the row table input section.

    when I use the add row button works correctly but without labels its hard to understand how to use it even if I use placeholder, specially if I use select or checkboxes

    is it possible to have inputs with labels, like this?

    Thank’s

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    The table construct for repetitive fields was designed with 1 row in mind and the labels placed on the top of the columns. However, you can instruct the plugin to retain labels on all rows with the following hook,

    add_filter('cf7sg_remove_table_row_labels', 'keep_labels, 10,2);
    function keep_labels($remove, $cf7_key){
      if($cf7_key != 'my-new-form') return $remove;
      return false;
    } 

    If you need a more complex repetitive form structure, you could also explore the tab construct, see this tutorial.

Viewing 1 replies (of 1 total)
  • The topic ‘Add lebel to table of fields for for repetitive inputs’ is closed to new replies.