Support » Plugin: Conditional Fields for Contact Form 7 » Hide textblock after clicking to another group

  • Resolved Sharp-Image

    (@sharp-image)


    Hi,

    I’ve setup some conditions with the code below.
    Works smooth. But this is my problem:

    When you click on the 2nd radio button Coaching and choose a “travel” subject you get a text box. When you click now on for example the first checkbox: “Let’s have a talk” you get two textboxes. It seems that the text box from a Travel from a 2nd level don’t switch and stay. (Its a part of the group fro m Coaching). Must I setup a if else condition to let this text box disappear when you click on a other checkbox?

    Code:

    <label> Name
        [text* your-name placeholder "Your full name"]</label>
    
    <label> Telephone
        [tel* your-phone placeholder "06 987 654 32"]</label>
    
    <label> Email
        [email* your-email placeholder "jon@email.com"]</label>
    
    <hr>
    
    <h5>Which of the following are you most interested in</h5>
    [radio product-options use_label_element default:0 "Let's have a talk" "Coaching" "Yoga" "Meditation"]
    
    <hr>
    
    [group coaching]
    <H5>Choose your travel</H5>
    [radio extra-coaching-options use_label_element default:0 "Need a boost - € 85,- per session" "Go for a change - € 80,- per session" "The full journey - € 75,- per session"] 
    [/group]
    [group coaching-1]
    <h5>Extra additional information</h5>
    <p>Extra information you want to tell:</p>
    [textarea textarea-899 placeholder "Type here"]
    [/group]
    [/group]
    
    [group talk]
    <h5>Additional information</h5>
    <p>Extra information you want to tell:</p>
    [textarea textarea-896 placeholder "Type here"]
    [/group]
    
    [group yoga]
    <h5>Some questions</h5>
    <p>What are you interested in getting out of coaching, yoga or meditation?</p>
    [textarea textarea-897 placeholder "Type here"]
    [/group]
    
    [group meditation]
     <h5>Some questions</h5>
     <p>What are you interested in getting out of coaching, yoga or meditation?</p>
     [textarea textarea-898 placeholder "Type here"]
    [/group]
    
    [submit class:btn-verzenden placeholder "Let's talk"]

    Many thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide textblock after clicking to another group’ is closed to new replies.