Hi!
With CF7 you can create your own custom form tags.
In my case, it’s a hidden selection
tag to list my cart items and send this with a form, according to the documentation:
add_action( 'wpcf7_init', 'custom_add_form_tag' );
function custom_add_form_tag() {
wpcf7_add_form_tag( 'selection', 'custom_selection_tag' );
}
function custom_selection_tag( $tag ) {
global $selection;
foreach ($selection as $s) {
$titles[] = get_the_title($s);
}
$datalist = '';
foreach ( $selection as $val ) {
$datalist .= sprintf(
'<input %s />',
wpcf7_format_atts( array(
'type' => 'hidden',
'name' => 'selection[]',
'checked' => 'checked',
'value' => get_the_title($val),
))
);
}
return $datalist;
}
But, the filed is not displayed on the Airtable tab list. Only the CF7 form-tags by default appears.