How to change the results of checkboxes from 1 to yes and 0 to no

smv - October 31, 2007 - 17:47

I need to change the checkbox values to yes and no. Can you let me know where I can do the change.

a partial answer...

anonymous5190 - December 2, 2007 - 18:12

You can change the value a checked checkbox returns by adding '#return_value' => 'yes' to the form.

However, if the checkbox is left unchecked it will still return 0. I've been searching unsuccessfully for a way to change the value an unchecked checkbox returns - if anyone knows, help would be appreciated!

 
 

Drupal is a registered trademark of Dries Buytaert.