• Hi, thank you for the plugin, again πŸ˜€

    I did create a function in my child theme to randomly display a question for the textarea to be used as response.
    but the last ] of the shortcode is closing the field in output and so it does not work.

    I did add

    function mycustom_wpcf7_form_elements( $form ) {
    $form = do_shortcode( $form );
    return $form;
    }
    add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );

    then I created my normal shortcode [ab_testing_phrase], and added this to the form :

    <label style="text-align:left;width:100%;">[textarea textarea-75 β€œ[ab_testing_phrase]”]</label>
    and I also tried this, but the syntax doesn't seems to work any more even without shortcode in.

    <label style="text-align:left;width:100%;>
    [textarea textarea-75]
    [ab_testing_phrase]
    [/textarea]
    </label>

    if I display the [ab_testing_phrase] out of textarea I have it
    if I add it to a text or hidden field, same, doesn’t work

    thank you for your reponse πŸ˜€
    best for 2025

    The page I need help with: [log in to see the link]

The topic ‘Custom shortcode content into form’ is closed to new replies.