Suddenly - since the last time I updated from github - last week - the $data array that is available to the php form plugin when the form is submitted no longer contains the labels for radiobuttons.
E.g. I have a radiobutton on an element named fb_generate___survey_style where one of the options was configured with the label 'Report' and the value 'report'.
I had some php code that checks
if ($data['fb_generate___survey_style'] == 'Report')
But that no longer works because now $data['fb_generate___survey_style'] is always empty.
The raw value, however, is correct. So I had to change the IF condition to
if ($data['fb_generate___survey_style_raw'] == 'report')
BTW - fb_generate is a joined table so any $data['fb_generate___element_name'] is from the (one and only) child record.
I may have fixed this problem, at least in this case - for this bug introduced with the last Fabrik update - but the real problem is that the $data array should also contain the label (not just the raw value) for radio buttons, like it used to.
I'm almost expecting to hear "I can't duplicate..." - but I thought I'd post this anyhow.
Happy New Year to all!
E.g. I have a radiobutton on an element named fb_generate___survey_style where one of the options was configured with the label 'Report' and the value 'report'.
I had some php code that checks
if ($data['fb_generate___survey_style'] == 'Report')
But that no longer works because now $data['fb_generate___survey_style'] is always empty.
The raw value, however, is correct. So I had to change the IF condition to
if ($data['fb_generate___survey_style_raw'] == 'report')
BTW - fb_generate is a joined table so any $data['fb_generate___element_name'] is from the (one and only) child record.
I may have fixed this problem, at least in this case - for this bug introduced with the last Fabrik update - but the real problem is that the $data array should also contain the label (not just the raw value) for radio buttons, like it used to.
I'm almost expecting to hear "I can't duplicate..." - but I thought I'd post this anyhow.
Happy New Year to all!