• Resolved Kevin

    (@kkrieger85)


    Hi,

    I use CF7 Version 4.5. and CF7 Cond. Fields 0.1.7

    How do I use a checkbox as condition??

Viewing 3 replies - 1 through 3 (of 3 total)
  • To use checkbox as condition, do something like…

    Form tag
    [checkbox checkbox-1 "Show group data"]

    In Conditional fields
    if checkbox-1 equals Show group data then show/hide --Select group--
    * Replace checkbox-1 and Show group data with the values you’ve provided in the Form tag.

    This should do the trick.

    carolemagouirk

    (@carolemagouirk)

    Has anyone tried using a checkbox to conditionally show a group using this guide?
    It doesn’t work for me, checking and unchecking the checkbox does nothing and the group is automatically hidden on page load.

    [checkbox checkbox-1 "Show featured upload"]
    
    [group featured-upload]
    Featured Online Listing (500px wide x 275px height)
    *File types accepted: png , jpg , jpeg , pdf
    **Other files types must be emailed.
    [file featured-online-ad filetypes:png|jpg|jpeg|pdf]
    <hr />
    [/group]

    if [checkbox-1] equals "Show featured upload" then show [featured-upload]

    IT Hertz

    (@it-hertz)

    This show/hide toggle works with checkbox, but not with acceptance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkbox as Condition’ is closed to new replies.