Checkbox Products for Gravity Forms (2024)

Checkbox Products for Gravity Forms (1)David Smith

/Updated June 21, 2023 /81 Comments

Checkbox Products for Gravity Forms (2)

Sometimes you don’t want to overwhelm users with product information. Once visitors have already committed to using your services, you might have a range of product options for them to choose from when they’re filling out a booking form – for example, activities on a holiday camp.

Having these checkboxes activate actual product fields makes it easy for you to integrate your form directly with your payment system, rather than running it through extra steps. In this example, the customer may have already read the brochure that details the cost of each activity, and the form simply needs to calculate the final total.

Out of the box, however, the Gravity Forms plugin does not support checkbox products. Despite seeming like a quick fix, they’re not as simple to implement as a default product option as they seem.

This tutorial will demonstrate how we can create Checkbox Products using a regular Checkbox field, multiple Single Product Fields, and Gravity Forms’ awesomely powerful Conditional Logic.

  1. Overview
    1. Step 1: Add a Checkbox Field
    2. Step 2: Add a Single Product Field for each Checkbox
  2. Doing more with Gravity Forms Checkbox Products
    1. Limit the Number of Choices a User Can Make
    2. Add Tax, Discount, and Subtotal Fields
  3. Any questions?

Overview

We will use a simple Checkbox Field to act as a “controller”. Each checkbox will correspond to a Single Product Field on the form. When the checkbox is checked, the corresponding Single Product Field is enabled via conditional logic.

Step 1: Add a Checkbox Field

Add a Checkbox Field to your form. Click on this field to edit the settings and add a choice for each product that will be selectable from this field.

General Settings for Checkbox Field

Step 2: Add a Single Product Field for each Checkbox

Add a Single Product Field for each checkbox in your Checkbox Field. I would recommend configuring one of the Single Product Fields and then using the duplicate feature (in the field settings header) to create multiple copies of the field.

1. Check the “Disable quantity field” setting so that the quantity will default to one.

2. Add “gf_invisible” to the Custom CSS Class setting on the “Appearance” tab. This will prevent the Single Product Field from being visible once it is “enabled” via conditional logic.

You may know about the “gf_hidden” class which does something very similar. The catch is that if you use the “gf_hidden” class, it will conflict with Gravity Forms’ product-based conditional logic and that product will not be counted towards the order total.

3. Add a conditional logic rule to only “show” this field when the corresponding checkbox is checked in our Checkbox Field.

These instructions might be a little confusing. Why are we using conditional logic to show/hide the appropriate product fields while simultaneously using the “gf_invisible” class to make sure the field is always hidden? Furthermore, if we want the field to always been hidden anyways, why don’t we just use a hidden field?

True, conditional logic is used to show/hide the field depending on the configured rules; however, another way to look at conditional logic is whether the field is “enabled” or “disabled”. In this context, we want the Product field to count towards the order total if the corresponding is checked, but we don’t want to confuse the user by actually revealing the product field itself. As far as the user is concerned, the Checkbox field is the Product field.

So why not use hidden product fields? Well, they don’t support conditional logic. *shrugs*

Working with Drop Down or Multi Select fields? Gravity Forms Advanced Select makes it possible to dynamically populate thousands of choices into these field types through a tight integration with Populate Anything.

Doing more with Gravity Forms Checkbox Products

Limit the Number of Choices a User Can Make

Sometimes you might want to set a limit on the number of products a user can select – for example, if you only have a limited number of a given product, or if you want users to only be able to select (say) 5 out of 10 options.

With Gravity Forms Limit Choices, you can limit how many times each choice on a choice-based field may be selected – whether they’re Checkboxes or Radio Buttons, Drop Downs, and so on. Exhausted choices are automatically removed to prevent users from being able to select the choice for future entries.

If a limit is applied to choices in a Product or Option field and there is a Quantity field associated with that product, the quantity ordered through checkbox inputs will be counted towards the limit.

You can even use the remaining number of choices left to trigger conditional logic!

Gravity Forms Limit Choices is part of Gravity Wiz’s Gravity Perks, a suite of 34+ plugins for Gravity Forms that add amazing new features for Gravity Forms.

Add Tax, Discount, and Subtotal Fields

Another Gravity Perk is Gravity Forms eCommerce Fields. This is great for situations where you want your customers to select all their Checkbox products and pay for them on the same form.

This plugin adds Tax, Discount, and Subtotal fields, each with their own unique functionality and field ID to improve the purchase experience.

The Tax field calculates and applies a percentage discount based on the order total, or individually based on specific products.

The Discount field applies a flat or percentage discount, again to the total or specific products. Again, thanks to using checkbox fields, rather than hidden product fields, we can then use conditional logic to only apply the discount when certain conditions are met!

The Subtotal field allows customers to better understand their orders by showing the subtotal before any shipping, coupons, and taxes have been applied. Oh, and those Coupons and Shipping fields are improved too!

Get Gravity Perks today to take advantage of eCommerce Fields and 33+ more other Gravity Forms add-ons, snippets, and more!

Any questions?

We’re here to help. Let us know how you use this in the wild wild web.

Did this resource help you do something awesome with Gravity Forms?

Then you'll absolutely love Gravity Perks; a suite of 47+ essential add-ons for Gravity Forms with support you can count on.

View All PerksBuy Now

  1. Checkbox Products for Gravity Forms (8)

    MarcDecember 15, 2023 at 5:46 pm

    Wow this is super neat and time saving, spot-on what I was looking for!Thank you so much for this great tutorial. What would be GF without GravityWiz!

    Reply

    1. Checkbox Products for Gravity Forms (9)

      David SmithStaffDecember 19, 2023 at 11:46 am

      Glad to help, Marc! Finding solutions is what wizards do best. 😉

  2. Checkbox Products for Gravity Forms (10)

    Karl SMay 8, 2023 at 12:50 pm

    This is great! Is there any way to apply a discount only if a given number of checkboxes are checked/products are selected? As in a Bundle Discount?

    Reply

    1. Checkbox Products for Gravity Forms (11)

      Scott RyerStaffMay 8, 2023 at 5:46 pm

      Hi Karl,

      Definitely! You could combine this snippet with GP eCommerce Fields to show a Discount field using conditional logic when the checkbox count goes above a specific threshold.

  3. Checkbox Products for Gravity Forms (12)

    sirOctober 4, 2022 at 3:05 pm

    hi i use gf_invisible class for my product filed , but its hidden for me in fields editorcan i edit this hidden field?

    Reply

    1. Checkbox Products for Gravity Forms (13)

      Brad OsborneOctober 4, 2022 at 5:31 pm

      Hi,

      You will be able to edit this field as normal from the form editor.

      If you purchase a license we can provide further support for your specific use case.

      Best,

      Brad

  4. Checkbox Products for Gravity Forms (14)

    Jeff MartinSeptember 20, 2022 at 3:10 pm

    I am trying to use the plugin woocommerce-gravityforms-product-addons to add student names to a woocommerce product at checkout. This post says “checkboxes” are not support and proposes a solution above. However, the plugin page says that “checkboxes” are supported.

    I have managed to use a custom plugin to dynamically pre-populate the “checkboxes” options with multiple student names from an ACF on the customer profile. Everything works great, however when adding the product to the cart I can check the first student and add to cart just fine. However, if I check any of the other student “checkboxes” I get the warning that “There was a problem with your submission. Please review the fields below” and “At least one field must be filled out”

    Is this expected? I could try to use another field type to allow for multiple student names such as the “multi-select” or the “list” select type. However, the “checkbox” type is preferred.

    Any ideas or help?

    Reply

    1. Checkbox Products for Gravity Forms (15)

      Dario SpaceStaffSeptember 20, 2022 at 3:29 pm

      Hi Jeff,

      This will require some digging to recreate the setup. If you’re a Gravity Perks customer, drop us a line and we’ll look into whether it is supported.

      Best,

  5. Checkbox Products for Gravity Forms (16)

    Christopher BrammerJuly 30, 2021 at 1:22 am

    I cannot get the “Total” module to count when the checkboxes are selected. I have set conditional logic on the module. I have tried testing within the preview tab and also within my page builder(elementor pro) and still the total will not adjust to the checkboxes selected. Any help would be much appreciated.

    Reply

    1. Checkbox Products for Gravity Forms (17)

      Samuel BassahStaffJuly 30, 2021 at 6:25 am

      Hi Christopher,

      Can you confirm if you’ve set the price for each of the Product fields. If so, then we’ll have to take a look at your form set up to know exactly why it isn’t working for you. If you have an active Gravity Perks License, you can get in touch with us via our support form with your account email address, so we take a look at your setup.

      Best,

  6. Checkbox Products for Gravity Forms (18)

    David HornFebruary 17, 2021 at 7:47 am

    Super helpful – thanks so much.

    Reply

  7. Checkbox Products for Gravity Forms (20)

    Shahzad ShahabJune 3, 2020 at 1:32 pm

    If there are 40 products and each product has its own price, will this logic still work?

    Is it possible for the user to checkout with the total amount generated by this form via WooCommerce?

    Reply

    1. Checkbox Products for Gravity Forms (22)

      Shahzad ShahabJune 3, 2020 at 5:27 pm

      Alright, have a look at this webpage “https://igerent.com/trademarkstudy” I am working on a project which is something similar to this. This webpage is not even WordPress but when you go down the forum and select countries from the list, you will see the sticky shopping cart getting updated, also when you select multiple checkboxes for classes, it also updates the shopping cart. Now every class and country has a different price and as you fill in the form it updates the price for you.

      Can we accomplish that with Gravity Forms?

    2. Checkbox Products for Gravity Forms (23)

      Ryan DonovanJune 4, 2020 at 9:10 am

      Hello Shahzad, Thank you for that information. You could create a variation of this using Gravity Forms core. From the looks of it, that would be a dropdown product . Another thing to note is that this would most likely require an inventory system of some sort like WooCommerce to make it work correctly. This would also give you the ability to use an order form such as the one on the website.

  8. Checkbox Products for Gravity Forms (24)

    Matthew DalliMarch 20, 2020 at 10:58 am

    Hi there,

    Thanks for the tut.

    How can you add a quantity field for each and every checkbox? Would we need to create a quantity field for each and every item?

    Reply

    1. Checkbox Products for Gravity Forms (25)

      Ryan DonovanMarch 20, 2020 at 1:39 pm

      Hello Matthew, This is an excellent question. In order for this to be accomplished, you would allow for the quantity field as well as the product to be shown. Doing this would not require the gf_invisible CSS as you will be displaying the product on the front end so the quantity field can be displayed. Please let us know if you have any other questions. 😀

  9. Checkbox Products for Gravity Forms (26)

    Greg ColeFebruary 7, 2020 at 11:09 am

    Looks like this method does not update the {subtotal} field when the products are added to the view…any way to update the subtotal correctly using this method?

    Reply

    1. Checkbox Products for Gravity Forms (27)

      Greg ColeFebruary 7, 2020 at 11:11 am

      I take that back – I had conditional settings for the subtotal to show specific products and just needed to add in my new product fields…

    2. Checkbox Products for Gravity Forms (28)

      Scott RyerStaffFebruary 7, 2020 at 1:50 pm

      Glad to hear you got it sorted. 🙂

  10. Checkbox Products for Gravity Forms (29)

    KylieOctober 18, 2019 at 12:19 pm

    I’d like to use this in gravity form product combination with Gravity Press which would allow users to check add-on services that are billed monthly along with their membership).

    Gravity Press requires the product field to have a Choice (the membership), value (membership (ID) and the Price (to be billed each month).

    This solution seems like it would work, but a single product field does let you input any value which is required for me to associate it with a membership.

    Any tips on how to incorporate “value” into single products instead of using a dropdown or radio buttons?

    Thanks!

    Reply

    1. Checkbox Products for Gravity Forms (30)

      David SmithStaffNovember 4, 2019 at 9:59 am

      Hm, I’m not sure I understand your issue, Kylie. Could you elaborate?

  11. Checkbox Products for Gravity Forms (31)

    PattySeptember 10, 2019 at 2:51 am

    Wow, this worked perfectly. Thanks so much!

    Reply

  12. Checkbox Products for Gravity Forms (32)

    Michael AndersonMarch 28, 2019 at 8:55 pm

    I was wondering if it would be possible to do checkbox groupings? Meaning a selects any 2 checkboxes and then the price shows up?

    Reply

    1. Checkbox Products for Gravity Forms (33)

      David SmithStaffMarch 29, 2019 at 8:20 am

      I’m not sure I understand. Do you have an example in the wild?

  13. Checkbox Products for Gravity Forms (34)

    C RFebruary 21, 2019 at 3:49 am

    Hello!

    I love this solution and tried it out but for some reason it’s not working.. The total price isn’t reflective of the ‘invisible’ product.

    Here’s the (corrected) link to the live form: https://debbielevycatering.com/testing/ (page 2 of the form)

    Thank you very much!

    Reply

    1. Checkbox Products for Gravity Forms (35)

      David SmithStaffFebruary 21, 2019 at 8:57 am

      Hi CR, can you send me a link to an export of your form? I’ll be happy to take a quick look and see if I can spot why this isn’t working for you.

    2. Checkbox Products for Gravity Forms (37)

      David SmithStaffFebruary 25, 2019 at 9:21 am

      Ah, I see the issue. You can’t use pipes | in your choice values or labels.

  14. Checkbox Products for Gravity Forms (38)

    Alane ColeNovember 30, 2018 at 6:23 pm

    Hi there! Just wanted to share my solution to the need for checkbox products for Gravity Forms. I’m fairly novice so feel free to suggest refinements if you find this helpful :)

    I was running into the problem of needing to toggle products with a checkbox – they can either order 1 or 0 and having the user have to manually enter a quantity was not very user-friendly for our option-intensive form. Searching turned up your solution here but it wasn’t going to work for what we needed – it was important to show the price of the option before the user had to make choice to click as we are also using your conditional pricing perk.

    I came up with a jquery solution to insert a checkbox before each product label. When the checkbox is checked it will set the quantity to 1, unchecked it sets it back to 0. As these checkboxes are purely for the purpose of setting the quantity fields I don’t need or want them included in the sent form fields so inserting them this way works well. I inserted this code as an HTML block in the form.

    The products are set as “Single Products” and leave the Quantity field enabled.

    Reply

    1. Checkbox Products for Gravity Forms (39)

      David SmithStaffDecember 1, 2018 at 8:18 am

      Hi Alane, looks like our Code input was broken since Github removed support for anonymous gists. I’d love to see what you came up with. Could you share it as a snippi instead?

    2. Checkbox Products for Gravity Forms (41)

      David SmithStaffDecember 1, 2018 at 8:46 pm

      I dig it! Thanks for sharing. ?

  15. Checkbox Products for Gravity Forms (42)

    JasonJune 13, 2018 at 7:16 pm

    Is there a way to have a price base on how many boxes are checked – however the prices aren’t equal. For example… 1 box checked = $40, 2 boxes checked = $75, 3 boxes checked = $110…

    Reply

    1. Checkbox Products for Gravity Forms (43)

      David SmithStaffJune 14, 2018 at 3:02 am

      Hi Jason, we have this snippet that will let populate the checkbox count into a field. You can then use GP Conditional Pricing to set the price per checkbox (1 = $40, 2 = $37.5 ($75), 3 = $36.66 ($110)) based on the number of checkboxes checked.

    1. Checkbox Products for Gravity Forms (45)

      David SmithStaffJanuary 9, 2018 at 9:31 pm

      I’m not sure I follow, Martti. Never 0? Is the demo working for you?

    2. Checkbox Products for Gravity Forms (46)

      MarttiJanuary 10, 2018 at 3:11 am

      Hi.

      I have 2 products that cost $100 and $200. The total shows $300 from the beginning, although the fields are hidden by cond log.

    3. Checkbox Products for Gravity Forms (47)

      David SmithStaffJanuary 10, 2018 at 7:36 am

      Hi Martti, the demo is working as expected which points to a plugin conflict or configuration error. Here is an export of the demo form you can import and play around with.

      https://gwiz.io/2qRzkIB

    4. Checkbox Products for Gravity Forms (48)

      MarttiJanuary 10, 2018 at 12:48 pm

      Hi, David. Thank’s for the demo, it works just great.

      But I have discovered 2 anomalies with my form:1. It works just fine is Previews, but not on the actul pages I use it2. It works if I enable quantities. I enter 1 for both products and the calculation works just fine. If I disable quantities and they default to 1, then Total is always the sum of all the products, although they are hidden by cond log.

      I know it’s not related to the topic, but maybe you have some ideas why this might happen.

  16. Checkbox Products for Gravity Forms (50)

    YvesNovember 15, 2017 at 2:25 am

    Hi,

    nice discussions here! :-)

    I have multiple checkboxes, is it possible to make a checkbox counter for the selected checkboxes?And is it possible to make a price rule independently of the order of selected checkboxes?

    Example:first choice costs 10 USD (maybe its checkbox 5)second choice costs 9 USD (maybe its checkbox 1)third choice costs 8 USD (maybe its checkbox 12)and so on…

    Would be great to know, if its possible or not to realize this with Gravity! Thanks

    Reply

    1. Checkbox Products for Gravity Forms (51)

      David SmithStaffNovember 15, 2017 at 7:47 am

      Hi Yves, we have a snippet for counting checkboxes: https://gist.github.com/spivurno/077fd21a993e9b573d46

      You could accomplish the second part of your question with Gravity Forms Conditional Pricing but it wouldn’t work exactly as described. Instead of the second one costing $9, the first two would cost $9.50 (10 + 9 = 19 / 2 = 9.5). You could do this math all the way down (10 + 9 + 8 = 27 / 3 = 9, etc).

    2. Checkbox Products for Gravity Forms (52)

      YvesNovember 15, 2017 at 7:53 am

      Hi David,

      great snippet! Thanks for that.

      About my second part of the question, is it possible to charge per checkbox click?First click 10 USD, second 9 USD, third 8 USD, …

      That would be the best solution!?

    1. Checkbox Products for Gravity Forms (54)

      David SmithStaffOctober 25, 2017 at 12:17 pm

      I’m not aware of any solutions like that for Gravity Forms. :/

  17. Checkbox Products for Gravity Forms (55)

    JohnNovember 16, 2016 at 12:45 pm

    David, I’m using this tutorial but I’m finding that if the user ticks one box, then changes their mind and ticks another, the pricing adds the second and does not remove the first without refreshing the form. Do you have a suggestion for how to make it update the total price if the user ticks one box and then changes that to another? (I’m using your perk to limit check boxes to 1 per field) I’m also curious as to hide certain fields from the summary that I’m putting into the email. For example, I use a drop down box to allow a selection and have the first item in the dropdown as 0 or no selection, since it seems to require an entry. If the user leaves it as such, it will appear in the order summary as an item with 0.00 value. Do you know how to hide a 0.00 value item from the summary and the email all-fields merge code?

    Many thanks again!John

    Reply

    1. Checkbox Products for Gravity Forms (56)

      David SmithStaffNovember 16, 2016 at 2:37 pm

      Do you mean if the tick one box, then untick that box and then tick another? If so, do you have a URL where I can view this in action?

    2. Checkbox Products for Gravity Forms (57)

      JohnNovember 16, 2016 at 3:17 pm

      If I had 2 checkboxes, each with a product linked through cond log and gf_invisible, and I clicked one, it would add that amount to the total. Then if I unclicked , the total did not update back to zero and if I clicked the other instead, it would add that as though I were purchasing both.

      Unfortunately, i can’t show you because the form is live and I’ve gone with a workaround and have just added two products. I wanted to offer checkboxes as they look better when there is only one of each item for sale so I don’t want to show quantity box.

      the site is at http://www.aisgiving.org. My next challenge is to try to prevent some fields from showing up on the order summary. For example, with a drop down box, my understanding is that I have to include a 0.00 option so the buyer can not purchase the drop down item. But then the 0.00 will show up on the summury. I also have a check box that will trigger adding a 3% fee to the order and it also appears in the summary, whether or not it is ticked. I’d love to know how to hide those if they are for 0.00. You can see this result if you walk through the form up the the payment part.

    3. Checkbox Products for Gravity Forms (59)

      JohnNovember 17, 2016 at 10:44 am

      Brilliant! Worked like a charm! Thanks again for being so awesome.

      John

    4. Checkbox Products for Gravity Forms (60)

      David SmithStaffNovember 17, 2016 at 1:47 pm

      Glad to help, John. :)

  18. Checkbox Products for Gravity Forms (61)

    JohnNovember 5, 2016 at 3:17 pm

    Hi again David.I seemed to have answered my own question. Wanted to post it to save you time replying:I created a third field to help out; an invisible number field. In the number field, I entered a calculation that simply added up the order total based on product price * quantity entered. Then, I created the other fields as you’ve instructed here, but in the product field, I enabled calculations using the merge tag for the number field I set up to sum the order total, then multiplied it by .03 and set cond logic to show only if the single checkbox, asking the user to indicate if they want to add 3%, is ticked. No need for a yes/no, just a yes.This works perfectly! Add 3% to the order total if ticked! And best of all, I’m using your perks, which I’m a very happy subscriber of, to put in conditional date logic and conditional pricing so that the tickets have an early bird and regular pricing set up. I used to have to create duplicate product fields and then schedule them to show/hide to accomplish this but your perks do a much better job of it and keeps the order data in one product field for reporting. Super awesome!

    Thanks David!J

    Reply

    1. Checkbox Products for Gravity Forms (62)

      David SmithStaffNovember 9, 2016 at 5:13 pm

      Awesome! Glad you were able to get this sorted. :)

  19. Checkbox Products for Gravity Forms (63)

    JohnNovember 5, 2016 at 3:01 pm

    Hi DavidI’m trying to make my form add a % to the total order, if the user ticks the check box. This is an event registration and donation form, so it gives them the option to add a processing fee to the total order. I have 4 product fields, so my approach is to use calculations to add up the total and then multiply it by .03. Works great with method above, but unfortunately, the calculation is causing it to add 3% to the total whether or not the box is checked. I’m wondering if you might have a suggestion as to how to make it an option to add 3% to the order total?

    Reply

  20. Checkbox Products for Gravity Forms (64)

    MarijnOctober 24, 2016 at 6:44 pm

    Hi there,

    This is almost what I’m looking for, you’re great!

    But is there any way I could use the checkboxes AND a quantity field??

    So i would like;

    [v] Option 1 ( $1.00) [ 2 ][ ] Option 2 ( $1.25) [….]

    TOTAL = $2.00

    Hope you understand my question.

    Many thanks!

    Marijn

    Reply

    1. Checkbox Products for Gravity Forms (65)

      David SmithStaffOctober 30, 2016 at 11:02 pm

      Hi Marijn, I believe I understand; however, this would require additional customization outside the scope of this tutorial.

  21. Checkbox Products for Gravity Forms (66)

    ChrisPJuly 7, 2016 at 12:14 pm

    How does this work now that conditional logic doesn’t work on Admin Only fields anymore?

    Reply

    1. Checkbox Products for Gravity Forms (67)

      David SmithStaffJuly 14, 2016 at 7:55 pm

      Hi Chris, this tutorial doesn’t make use of Admin Only fields. The fields are hidden via the “gf_invisible” class.

  22. Checkbox Products for Gravity Forms (68)

    Aryama Raksh*tJune 29, 2016 at 4:17 am

    Nice one.It works fine.Thanks…………………..

    Reply

    1. Checkbox Products for Gravity Forms (69)

      David SmithStaffJune 30, 2016 at 8:41 am

      Glad to hear it. :)

  23. Checkbox Products for Gravity Forms (70)

    CatherineMarch 15, 2016 at 3:48 pm

    Hello – this works nicely on the form, but the confirmation page looks a bit messy since the hidden fields also appear in addition to the ordered items.

    Is there a way to hide hidden forms from the confirmation page as well?

    Thanks,Catherine

    Reply

    1. Checkbox Products for Gravity Forms (71)

      David SmithStaffMarch 25, 2016 at 4:30 pm

      Do you have a URL where I could see what you mean?

  24. Checkbox Products for Gravity Forms (72)

    brianFebruary 3, 2016 at 8:31 pm

    HI, this is great. Will it work in conjunction with the Quantity Limits add on?

    Reply

    1. Checkbox Products for Gravity Forms (73)

      David SmithStaffMarch 8, 2016 at 10:59 pm

      I think so but have not tested it.

  25. Checkbox Products for Gravity Forms (74)

    Allen JDecember 23, 2015 at 4:58 am

    If you wanted to add 4 x membership packages, each has a few extra add-on options.

    Would this be the way to do it OR would we try through woocommerce?

    Reply

    1. Checkbox Products for Gravity Forms (75)

      David SmithStaffDecember 23, 2015 at 7:31 am

      Hi Allen, it’s hard to give a definitive answer since there are so many variables at play. This method for handling checkbox products certainly makes it possible to do this with Gravity Forms. I’m not sure how WooCommerce handles this but I’m sure it’s possible on that end as well. I would make my decision based on other required features. Whichever meets the most needs.

  26. Checkbox Products for Gravity Forms (76)

    PeninahNovember 19, 2015 at 6:33 am

    Thanks! Works beautifully.

    Reply

    1. Checkbox Products for Gravity Forms (77)

      David SmithStaffNovember 19, 2015 at 8:51 am

      Awesome! Glad you like it. :)

  27. Checkbox Products for Gravity Forms (78)

    PieterApril 25, 2015 at 6:26 am

    Hi David,

    Is it possible to add a amount input field, so the user can check a product they want to buy and then fill in the amount of that product?Thanks!

    Reply

    1. Checkbox Products for Gravity Forms (79)

      David SmithStaffApril 26, 2015 at 8:09 pm

      Hi Pieter, yes, this is possible. You would follow this tutorial almost exactly except instead of disabling the quantity input, you would leave it active. The user would then check the checkbox to show the product field they want to order and then can specify the quantity they want to order via the quantity input available for that product field.

  28. Checkbox Products for Gravity Forms (80)

    Shawn HApril 16, 2015 at 4:20 pm

    Hi David,

    Thank you for this tutorial. I find myself hacking Gravity Forms quite often, and it is great to see examples of how other people are manipulating the given form fields to achieve results outside of the given functionality of the plugin.

    I do have one question, would you achieve the same results if you made the Single Product field visible to admin only instead of applying the gf_invisible class?

    Thanks again!!

    Reply

    1. Checkbox Products for Gravity Forms (81)

      David SmithStaffApril 16, 2015 at 9:12 pm

      Hey Shawn, the Visibility setting which allows you to set the visibility to “Admin-only” means it would only be visible in the administrative area (aka the WordPress admin) not that the field is only visible to admin users. As such, setting a field to Admin-only means that it won’t be output to the page at all and therefore it wouldn’t count towards the total or be available to conditional logic.

  29. Checkbox Products for Gravity Forms (82)

    MariannaFMarch 26, 2015 at 10:14 am

    How do you add a single product to a radio option?

    Reply

    1. Checkbox Products for Gravity Forms (83)

      David SmithStaffMarch 26, 2015 at 10:15 am

      Hi Marianna, could you elaborate on this? I’m not sure I understand.

    2. Checkbox Products for Gravity Forms (84)

      MariannaFMarch 26, 2015 at 10:18 am

      Yes. Step 2 is not clear. How do you add a single product for each checkbox (option). Or am I missing something? Is this a plugin that needs to be downloaded? I don’t have a checkbox option at all.

    3. Checkbox Products for Gravity Forms (85)

      MariannaFMarch 26, 2015 at 10:20 am

      Correction: I don’t have a checkbox option as part of the Pricing fields.

    4. Checkbox Products for Gravity Forms (86)

      David SmithStaffMarch 26, 2015 at 11:26 am

      Here is the export for the demo form. If you import this form , you will be able to see how the fields are configured and which fields need to be added.

      To answer your question specifically, you would add Single Product Fields (this is the default field type for a product field) since the Product field does not support a Checkbox field type.

      Let me know if this is still unclear. :)

    5. Checkbox Products for Gravity Forms (87)

      MariannaFMarch 26, 2015 at 3:23 pm

      Thank you! That worked. If I have multiple fields like this on my form, should I change the conditional logic to reflect each field? Should I rename the class for each checkbox group?

    6. Checkbox Products for Gravity Forms (88)

      David SmithStaffMarch 26, 2015 at 10:42 pm

      You do not need to change the gf_invisible class. It is generic and can apply to all fields you need to hide. And yep, you would need to change the conditional logic if you intend to have multiple checkbox products.

Leave a Reply

Checkbox Products for Gravity Forms (2024)

References

Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6156

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.