Help: Custom field "Checkbox".

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Skellington
Posts: 8
Joined: 10 Aug 2005, 21:08

Help: Custom field "Checkbox".

Post by Skellington »

I define a "Checkbox" Custom Field with "RED|GREEN|BLUE| on "Possible Values" (it's just an example)

How can I show one check below the other instead of one next to the other?


Thanks.
Skellington
Posts: 8
Joined: 10 Aug 2005, 21:08

Post by Skellington »

I found a solution:

I set "Possible Values" as:

"RED<br>|GREEN<br>|BLUE"

and it works!
but, GREEN and BLUE checks are left indented... snif.

Well, if somebody could fix this indentation I will thanks.
Guest

Post by Guest »

in core/custom_fields_api.php, function print_custom_field_input()
change:

Code: Select all

echo '<input type="checkbox" name="custom_field_' . $t_id . '[]"';
to

Code: Select all

echo (@++$i == 1? '&nbsp;&nbsp;': '') . '<input type="checkbox" name="custom_field_' . $t_id . '[]"';
[line 1112 or so
Guest

Post by Guest »

damn .. see quote
Post Reply