Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP connect

    (@wpconnectco)

    Hi theamnesic,

    Could you please create a video on Loom explaining your request to me? I’m having trouble understanding it.

    Kind Regards,

    Khalil
    WP Connect Support

    Thread Starter theamnesic

    (@theamnesic)

    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.

    Plugin Author WP connect

    (@wpconnectco)

    Hi theamnesic,

    We want to inform you that the dev team will look into adding custom form tag functionality in a future release.

    Kind regards,

    Khalil
    WP Connect Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.