Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
- AuthorPosts
chrisfrick
ParticipantHere you go…
array(1) { [0]=> string(1) “2” }
Greets
Chrischrisfrick
Participant
<?php if (in_array('1', (array) $form->getValue('iphorm_5_1')) : ?>
Option 1 is ticked
<?php endif; ?>But doesn't work :/
chrisfrick
ParticipantI tried this…
<?php
if (in_array(‘1’, (array) $form->getElement(‘iphorm_5_1’)){
echo “Option 1!”;
}
?>But dind’t work and it’s the right ID, the Value of Option 1 is ‘1’ as well.
Other idea?
chrisfrick
ParticipantHmm.. But I got 2 Checkboxes…
Option 1
Option 2With this solution I only know… if 1 Checkbox is checked or not, but I need to know if Option 1 or Option 2 is checked.
Thanks
Chrischrisfrick
Participantokay no other problem 🙂
- This reply was modified 11 years, 5 months ago by
chrisfrick.
- This reply was modified 11 years, 5 months ago by
- AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)