Correct syntax for pullingcheck box data?
-
I’ve built a form that allows a user to customize a unit with options that are offered in radio buttons and checkboxes. I’m trying to build a custom-template PDF invoice that checks to see if a given option is selected in its entry, then outputs a table row of condensed information about each option if it was selected.
So far, the form is doing great with radio buttons but I can’t get any selected checkboxes to print. Here’s my template php, this one is for a single checkbox in Field 109:
<?php if (substr($form_data['field'][109],0,7) == 'APX-AMC') { ?> <tr><td>1</td><td>APX-AMC</td><td>APX Master Clock</td><td>$1750</td><td>$1750</td></tr> <?php }; ?>In the wp_rg_lead_detail table for my test entry I see that the field_number is 109.1, but adding that to the above doesn’t work. What am I doing wrong? I have some fields with multiple checkboxes, so if you could show me that template too, that would be greatly appreciated. Thanks!
The topic ‘Correct syntax for pullingcheck box data?’ is closed to new replies.