How to send zero value to checkbox [RESOLVED]

Following up on this post, but with a new topic.
The following field list doesn’t set the checkbox “No” value.
[gravityforms id="16" field_values="yncheckbox=0"]
however, the following sets the the checkbox “Yes” value.
[gravityforms id="16" field_values="yncheckbox=1"]
I have no doubt this works interactively. I’m trying to extend regression testing to automated processing.

Use array syntax.
[gravityforms id="16" field_values="yncheckbox[]=1&yncheckbox[]=0"]

1 Like