Title: Conditional elements &#8211; not working
Last modified: March 7, 2018

---

# Conditional elements – not working

 *  Resolved [widec](https://wordpress.org/support/users/widec/)
 * (@widec)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/conditional-elements-not-working/)
 * 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)

 *  [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/conditional-elements-not-working/#post-10070307)
 * 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.

 * ![](https://ps.w.org/html-forms/assets/icon-256x256.png?rev=1754345)
 * [HTML Forms - Simple WordPress Forms Plugin](https://wordpress.org/plugins/html-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/html-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/conditional-elements-not-working/#post-10070307)
 * Status: resolved