How to hide a custom field depending on a custom field just before

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Amin
Posts: 26
Joined: 08 Oct 2018, 15:42

How to hide a custom field depending on a custom field just before

Post by Amin »

Hello everybody,

I would like to hide a custom field who depend on a custom field just before.

Exemple
I have 2 customs fields, custom1 (custom1 is a checkbox with 3 values) and custom2 (custom2 is a float type).
When value 1 of custom field one is checked the custom 2 is appear. And when value2 of custom1 is checked we don't need the custom 2 so we can hide the custom 2.

Anyone have an idea how to do that ?

Thank a lot.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to hide a custom field depending on a custom field just before

Post by atrol »

This plugin might be what you want https://www.mantisbt.org/wiki/doku.php/ ... stomfields
Unfortunately it is not maintained at the moment and just available for Mantis 1.2.x, so you would have to make some changes to run it with latest Mantis versions.
Please use Search before posting and read the Manual
Amin
Posts: 26
Joined: 08 Oct 2018, 15:42

Re: How to hide a custom field depending on a custom field just before

Post by Amin »

Hello atrol,

I have used this plugin to link 2 custom field but the problem is that this plugin is working only for ENUMERATION and MULTI_SELECT type.
Also I don't think that is the same problem. I want to hide all the custom field and not only the value. And this plugin is to hide only the values of custom field.

Thank you
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to hide a custom field depending on a custom field just before

Post by atrol »

You will hardly find a plugin that does exactly what you want.

The mentioned plugin is certainly a good start to see how to implement a plugin that is able to hide custom fields depending on values of other custom fileds.
Please use Search before posting and read the Manual
Post Reply