Title: Using pressed button as a condition?
Last modified: August 21, 2016

---

# Using pressed button as a condition?

 *  Resolved [YukiAme83](https://wordpress.org/support/users/yukiame83/)
 * (@yukiame83)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-pressed-button-as-a-condition/)
 * The plugin has so many great useful features, that I wonder if it can do the 
   following:
 * I’d like a short contact form to appear when certain button is pressed without
   sending the reader to a different page or reloading this one. So I’ve included
   two buttons in the form: one reveals it, and one submits the entry. But when 
   I try to add a condition to the fields, the plugin expects me to put in some 
   value for the button… Sorry, if this is a stupid question, but what value is 
   given to the button variable when the button is pressed, and how can I use it
   as a condition (if it can be used this way by design)?
 * I would much appreciate your thoughts on the matter.
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

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

 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-pressed-button-as-a-condition/#post-5129909)
 * Hi There.
 * Its not possible via conditions, but you can simple create a two page form.
    
   the first page has nothing but a button set as a “next page” type. You can label
   it “Contact Us”
 * Then build your form on page 2.
    Click the “Pages” tab and make sure breadcrumbs
   are unchecked, as not to show them.
 * So now the form will only show when the user click the button on the first page.
 *  Thread Starter [YukiAme83](https://wordpress.org/support/users/yukiame83/)
 * (@yukiame83)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-pressed-button-as-a-condition/#post-5129912)
 * Sweet! Thanks for the suggestion, it works just the way I wanted.
 * Funny thing, if I check Hide Label for any of the text fields, they won’t show
   up at all in this case. It doesn’t matter to me, but I thought I’d let you know.
 * Thanks again, you rock!

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

The topic ‘Using pressed button as a condition?’ 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/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [condition](https://wordpress.org/support/topic-tag/condition/)

 * 2 replies
 * 2 participants
 * Last reply from: [YukiAme83](https://wordpress.org/support/users/yukiame83/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/using-pressed-button-as-a-condition/#post-5129912)
 * Status: resolved