Not passing the value "0"
-
We have a field that is a drop down list which has many items in it that evaluate to a number. The first item has a value of 0 and that value is stored in the Gravity Forms entity as such. However, when our submission hook is processed the field does not get assigned to the $data array. It looks like the empty() function on line 99 ***!empty($value])*** is the culprit. That will evaluate to true if the value is 0 or “0”.
I am going to modify for now but would love to have an update if one is in the works.
https://www.ads-software.com/plugins/gravitate-gforms-api-helper/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Not passing the value "0"’ is closed to new replies.