Count Checkboxes with Gravity Forms

后端 未结 1 1159
情歌与酒
情歌与酒 2021-01-24 02:57

I\'m making a form that is for a summer camp registration form where users will be registering. By the end of the form there is an option of paying in full or making a $50 depos

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 03:38

    I actually have a snippet for this:

    https://gist.github.com/spivurno/077fd21a993e9b573d46

    Updated: https://gist.github.com/spivurno/a14ef4a18f57d0c67811e1b4d8791781

    The parameters are:

    • form_id the ID of the form for which you would like to count the checkboxes
    • count_field_id the ID of the field into which you would like to populate the checkbox count (you can then use this field's merge tag in a Calculation formula)
    • checkbox_field_ids an array of Checkbox field IDs whose checkboxes should count towards the checkbox count (when checked)

    0 讨论(0)
提交回复
热议问题