Hi,
I'm making a pretty simple FormIt hook to send some data to a web service.
I can get all values using:
$allFormFields = $hook->getValues();
and then using:
$allFormFields['formFirstName']
to get the value.
My radio button HTML looks like this:
<input type="radio" name="formGender[]" value="male" class="required" [[!+fi.formGender:FormItIsChecked=`male`]] > Male
<input type="radio" name="formGender[]" value="female" [[!+fi.formGender:FormItIsChecked=`female`]] > Female
But when I fetch the data like this:
$allFormFields['formGender']
I get an "Array".
How do I get the actual data to see if the male radio button is checked?
I'm using MODx 2.1.2 for this project.