• Resolved widec

    (@widec)


    Hi!
    Really like this plugin.
    Supernice.
    I can’t make the conditionals work though.
    I have this:

    <p>
        <label>Finns det en grafisk profil idag?*</label><br>
        <label>
            <input type="checkbox" name="REBRAND[]" value="Ja" /><span>Ja</span>
        </label>
        <label>
            <input type="checkbox" name="REBRAND[]" value="Nej" /><span>Nej</span>
        </label>
    </p>
    <p>
        <label>Vad finns i dagsl?get? Som t.ex. logotyp, f?rger, typsnitt m.m.<br>F?rklara nedan.</label><br>
        <textarea name="REDESIGN-FINNS" data-show-if="REBRAND:Ja"></textarea>
    </p>

    This doesn’t work for me. Nothing happens…

    Best, Niklas

Viewing 1 replies (of 1 total)
  • Hi Niklas,

    The latest version of HTML Forms may already fix this for you, but if not, then the following surely will:

    
        <textarea name="REDESIGN-FINNS" data-show-if="REBRAND[]:Ja"></textarea>
    

    Most likely, you don’t want to allow multiple values for your first question though. So I would actually change to to either a <select> element, two <input type="radio"> elements or the <input type="checkbox"> you have now but without the square brackets in the name attribute:

    
      <input type="checkbox" name="REBRAND" value="Ja" /><span>Ja</span>
    

    Hope that helps, good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional elements – not working’ is closed to new replies.