How can I change checkbox coed in register helper to display label not value
-
I’m using this code in my customization with register helper to display checkboxes.
//checkbox
$checkbox = new PMProRH_Field("agree", "checkbox", array("profile"=>true));
pmprorh_add_registration_field("after_email", $checkbox);and this to display the usermeta:
<p><?php echo $curauth->agree; ?></p>
But my usermeta is only showing a “1” for checked value and “0” for null. Is it possible to have the usermeta actually show the label for the checkbox rather than the value?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can I change checkbox coed in register helper to display label not value’ is closed to new replies.