PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Creating A Button, Onclick conditional logic

  1. Basically I want to hide all of the fields associated with a product (and all its options) until the user clicks a button titled "ORDER THIS"

    I would love to have it as a button.

    Is there any way to accomplish this?

    Posted 10 years ago on Thursday June 20, 2013 | Permalink
  2. I have accomplished this through a checkbox field, I just input an image of a button as the label, then used CSS to move the actual checkbox off screen.

    This is not ideal, because it shows up "checked" and shows the image in the backend Entry / Noticifcations.

    Is there a way to hide fields from being shown in Entries / Notifications?

    Posted 10 years ago on Friday June 21, 2013 | Permalink
  3. Yeah you would need to use a checkbox field for this, like you've done. But that will be part of the entry which will get lumped into the notification if you are using the all_fields merge tag. You could craft your own notification by using the individual merge tags instead, but that could prove to be a bear depending on how many fields you have.

    You may consider enabling Values on that checkbox and placing the "Order This" text as the value so at least that's what would get recorded in the entry instead. So your image would be for front-end use only.

    Posted 10 years ago on Friday June 21, 2013 | Permalink