Unfortunately, conditional logic doesn't allow those kinds of things yet. You would have to create hidden fields in your form, and then using the gform_pre_submission hook, you would have to write a function to do the logic, put a value in your hidden field, and then use conditional logic to pick up on that.
So for your example, you would have a hidden field called "lifestatus".
Your pre_submission hook would grab the submitted values from your two fields, do the math, and send the value back to the lifestatus field.
Then your conditional logic in your notifications would be able to do the is 3 conditional to show Married with one kid.
Posted 12 years ago on Monday July 16, 2012 |
Permalink