Title: Creating a disabled button
Last modified: August 22, 2016

---

# Creating a disabled button

 *  Resolved [ElectricMonk111](https://wordpress.org/support/users/electricmonk111/)
 * (@electricmonk111)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/)
 * Probably me being stupid, but I can’t see how to create a button that is disabled(
   not hidden, just disabled) until certain conditions are met.
 * Your demo form at [http://demo.calderaforms.com/conditional-logic/](http://demo.calderaforms.com/conditional-logic/)
   does this: the “Send application” button starts off disabled and is only enabled
   when I click the “Agree to terms and conditions” box. Doing a view-source, it
   looks like the demo form has two different buttons, with the disabled button 
   replaced by the enabled button at the right moment using conditionals. The thing
   is, I can’t see how to create a disabled button within Caldera Forms!
 * Any chance of an exported form definition for that demo form, so I can see how
   it’s done?
 * Thanks
 * Andy
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/#post-5185032)
 * I simply used an HTML element with `<button type="button" type="button">text</
   button>`
    The set it to hide with the same conditions a real button has to show.
 *  Thread Starter [ElectricMonk111](https://wordpress.org/support/users/electricmonk111/)
 * (@electricmonk111)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/#post-5185039)
 * Thanks. I guess I was expecting some way to do it without resorting to HTML.
 * Suggestion for a future release to make this easier (it’s quite a common requirement):
 * Either (a) as part of the settings for a “button” element, provide a “Disabled”
   checkbox which simply adds the “disabled” attribute to the button’s HTML..
 * or (b) in the Conditions tab for an element, have three states to choose from:
   Show, Hide and Disable.
 * (b) would be better.
 * Cheers
 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/#post-5185175)
 * Sounds like a plan. I’ll look into adding it! thanks.
 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/#post-5185371)
 * added to v1.1.4 – sending update soon.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Creating a disabled button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/creating-a-disabled-button/#post-5185371)
 * Status: resolved