Help! Enumeration Custom Fields with Dynamic Possible Values

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
flexiy
Posts: 4
Joined: 13 Oct 2010, 17:54

Help! Enumeration Custom Fields with Dynamic Possible Values

Post by flexiy »

I'm trying to follow this page: http://www.mantisbt.org/wiki/doku.php/m ... ds?do=show
but I couldn't get it work.

what steps I have to follow, to get it working?

I want an association like:
'Animals' = cat|dog
'Food' = japanese|chinese

I already have the fields with:
Animals|Food (enum)
and
cat|dog|japanese|chinese

but what steps I have to do for when I select 'Animals' it only show the animals???
flexiy
Posts: 4
Joined: 13 Oct 2010, 17:54

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by flexiy »

is not that simple like the wiki?
I still can't get it work

no one can help? ;/
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by atrol »

You could post your sourcecode and tell what is happening (getting error messages? wrong values displayed?, .....)
Please use Search before posting and read the Manual
flexiy
Posts: 4
Joined: 13 Oct 2010, 17:54

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by flexiy »

i'm using the original source code.
don't know how to change (even with the wiki) :/
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by atrol »

You should start with a single custom enumeration field called "Animals" and function custom_function_override_enum_Animals

But to get all run the way you want (where contents of one field influences the contents of the other) you have to learn PHP, HTML, CSS and JavaScript
Please use Search before posting and read the Manual
flexiy
Posts: 4
Joined: 13 Oct 2010, 17:54

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by flexiy »

atrol wrote:You should start with a single custom enumeration field called "Animals" and function custom_function_override_enum_Animals

But to get all run the way you want (where contents of one field influences the contents of the other) you have to learn PHP, HTML, CSS and JavaScript
i already know this languages, not all of each. i just don't understand how mantis works.
Last edited by flexiy on 28 Oct 2010, 10:25, edited 1 time in total.
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by atrol »

atrol wrote:You could post your sourcecode and tell what is happening (getting error messages? wrong values displayed?, .....)
Furthermore post the definition of your custom field
Please use Search before posting and read the Manual
diegcam1
Posts: 1
Joined: 28 Oct 2010, 21:15

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by diegcam1 »

Hi have the same problem

What file i have to edit?

Thanks
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by atrol »

http://docs.mantisbt.org/master/en/admi ... USTOMFUNCS
User versions of these functions are placed in a file called custom_functions_inc.php in the root directory of MantisBT
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Post by M@rce »

Hi,
Can i make a customization for each project in MBT?
Thanks.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Post Reply