I have a form located at http://bus-site.kcdtest.com/get-an-alert/ (which is a dev/test site) The drop down you see is conditional logic if you select "Phone" or "Text" you'll see a phone field if you select "email" you see an "email" field. The problem is if you select "Text" then hit submit the default value for the dropdown (email) is selected.
I have narrowed this down to the fact that the value of "text" is set to 0. If i set it to any other value it works fine. The problem is I need it set to '0' because the data is going into an external database.
I'm assuming this is because somewhere you're using the php "empty" function and 0 shows up as empty so it moves on to the default value.
One workaround may be for me to set the value to something until post submit then if the value is whatever set it to 0 before putting it into my external db. For example, set the value to 5 then if the value is 5 on gform_post_submission
set it back to 0 before putting it into my DB.
Any suggestions or additional work arounds would be great.