Viewing 1 replies (of 1 total)
  • 1-install, activate and configure “Easy Spoiler” plugin
    2-in the functions.php of Contact Form 7 add:
    add_filter( ‘wpcf7_form_elements’, ‘mycustom_wpcf7_form_elements’ );
    function mycustom_wpcf7_form_elements( $form ) {
    $form = do_shortcode( $form );
    return $form;}
    3-The shortcode format in the cf7 form is (example):
    [spoiler title=”the title here”]
    State 1:
    [text* state1 2/2 “IT” “EN” “FR”]
    State 2:
    [text* state2 2/2 “IT” “EN” “FR”]
    [/spoiler]

Viewing 1 replies (of 1 total)
  • The topic ‘How to Expand & Collapse Text in the form’ is closed to new replies.