how to set default value for custom field checkbox?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mkornatzki
Posts: 8
Joined: 10 Nov 2005, 19:36

how to set default value for custom field checkbox?

Post by mkornatzki »

in mantis 1.2.0.a2 i tried to define a custom field checkbox as checked.
if i define nothing in possible values then it is not possible (for me).

if i set "true" in possible values then i can set "true" or "false" as default value and this works but i get an additional caption "true" in front of the checkbox.

How can i make a checkbox that is checked as default?

thanks in advance
michael
mkornatzki
Posts: 8
Joined: 10 Nov 2005, 19:36

Re: how to set default value for custom field checkbox?

Post by mkornatzki »

it seems that i didn't have to set the default value. then the checkbox is checked. if i set any value as default value the ckeckbox is unckecked
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: how to set default value for custom field checkbox?

Post by deboutv »

Checkbox fields is not an ON/OFF (TRUE/FALSE) field, it is like the list field but presented with checkbox...
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
Sara
Posts: 3
Joined: 18 Jul 2017, 09:14

Re: how to set default value for custom field checkbox?

Post by Sara »

I've solved the problem setting "Yes" as possible values and nothing as Default values. It works fine.
Post Reply