dependent custom fields

Get help from other users here.

Moderators: Developer, Contributor

rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

dependent custom fields

Post by rondezo »

Hello everyone. There is a custom field A as a list with elements 1,2,3,4. There is a custom field B as a list with elements 1.1, 1.2, 1.3, 1.4, 2.1, 2.2, 2.3 Is it possible to make it so that if I select element 1 in field A in the form of creating a new task, then I see only 1.1, 1.2, 1.3, 1.4 in another field B, and if I select 2 in field A, then only 2.1, 2.2, 2.3, 2.4 would be visible in field B? That is, the number of items in field B depended on the selected item in field A. Thank you so much for your help.
Attachments
short_time_v.png
short_time_v.png (19.74 KiB) Viewed 6358 times
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

look for the plugin LinkedCustomFields, that one does exactly what you ask for :mrgreen:
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 10 Feb 2021, 11:51 look for the plugin LinkedCustomFields, that one does exactly what you ask for :mrgreen:
thanks for the answer, but I can't connect new plugins except for those ones. which went built-in during installation. I add a folder from the archive to the plugins directory, but it does not appear on the manage plugins page. I can't install any plug-ins. Please help me understand the reason?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

First you need to download the plugin, see here:
https://www.mantisbt.org/wiki/doku.php/ ... stomfields

Next you need to install it, which is described in the admin manual which is available within the distribution ( see the doc/en directory where you will find the PDF version). :mrgreen:
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 10 Feb 2021, 15:51 First you need to download the plugin, see here:
https://www.mantisbt.org/wiki/doku.php/ ... stomfields

Next you need to install it, which is described in the admin manual which is available within the distribution ( see the doc/en directory where you will find the PDF version). :mrgreen:
I have carefully reviewed all the documentation. I download the plugin, take a folder from the archive with the name of the plugin (which contains the php file and the plugin configuration files. I copy the folder to the /plugins folder. In the same folder there are folders with plugins that came with the installation of Mantis. I go to the plugin management folder as an administrator. BUT! in the window that opens, there are no new plugins to install. I click the update button. BUT! plugins do not appear. What am I doing wrong?
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

rondezo wrote: 11 Feb 2021, 06:12
cas wrote: 10 Feb 2021, 15:51 First you need to download the plugin, see here:
https://www.mantisbt.org/wiki/doku.php/ ... stomfields

Next you need to install it, which is described in the admin manual which is available within the distribution ( see the doc/en directory where you will find the PDF version). :mrgreen:
I have carefully reviewed all the documentation. I download the plugin, take a folder from the archive with the name of the plugin (which contains the php file and the plugin configuration files. I copy the folder to the /plugins folder. In the same folder there are folders with plugins that came with the installation of Mantis. I go to the plugin management folder as an administrator. BUT! in the window that opens, there are no new plugins to install. I click the update button. BUT! plugins do not appear. What am I doing wrong?
have partially solved my question. It turned out that the copy to the folder came from another owner (not root) now the plugin is displayed among the possible ones for installation, but there is no install button in the "Action" field. What could be the reason?
Attachments
plugin.png
plugin.png (105.48 KiB) Viewed 6281 times
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

Well it states it is missing a dependency, you need to install the Jquery plugin, version 1.8 or above ( see here: https://github.com/mantisbt-plugins/jQuery-UI).
Once all dependencies are met, the install button will magically appear :mrgreen:
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 11 Feb 2021, 11:42 Well it states it is missing a dependency, you need to install the Jquery plugin, version 1.8 or above ( see here: https://github.com/mantisbt-plugins/jQuery-UI).
Once all dependencies are met, the install button will magically appear :mrgreen:
the plugin had an install button, so I installed it. and on the other plugin, the install button did not appear.
another inspector in the browser gives the error Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://****domen****/mantis/plugin_file.php?file=jQueryUI/jquery-ui-min.css".

What did I do wrong? :?: :(
Attachments
С123.png
С123.png (102.17 KiB) Viewed 6260 times
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

You did not install the JQuery plugin properly, get that one sorted first, next you can install the LinkedCustomFields plugin.
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 12 Feb 2021, 10:17 You did not install the JQuery plugin properly, get that one sorted first, next you can install the LinkedCustomFields plugin.
get that one sorted first - Please explain what this means?

I moved the plugin folder to the plugins folder. Then, in ase.css and ace.min.css, I replaced (in accordance with the instructions for the plugin) the url ('images/) with the url ('plugin_file.php?file=jQueryUI/ in two lines.

Rename files to avoid having several dots in filename (incompatible with plugin_file) -- I did not understand how to do this, I ask for your help.

After that, I installed the jQuery plugin.
Please help me solve my problem.
What did I do wrong?

Thank you so much for your attention to my question!!
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

I will install this one myself later today and let you know what needs to be done :mrgreen:
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 12 Feb 2021, 11:28 I will install this one myself later today and let you know what needs to be done :mrgreen:
Hello, I'm really looking forward to your help
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: dependent custom fields

Post by cas »

Please download the latest version from here:
https://www.mantisbt.org/bugs/view.php?id=24226
This one seems to be working, no need for the jquery plugin either.
So first remove the current linkedcustomfields plugin and the jquery plgin.
Next add the plugin from the link above.
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

cas wrote: 16 Feb 2021, 09:25 Please download the latest version from here:
https://www.mantisbt.org/bugs/view.php?id=24226
This one seems to be working, no need for the jquery plugin either.
So first remove the current linkedcustomfields plugin and the jquery plgin.
Next add the plugin from the link above.
Thank you very much!!! The plugin was installed correctly!
rondezo
Posts: 85
Joined: 09 Feb 2021, 09:18

Re: dependent custom fields

Post by rondezo »

rondezo wrote: 16 Feb 2021, 10:54
cas wrote: 16 Feb 2021, 09:25 Please download the latest version from here:
https://www.mantisbt.org/bugs/view.php?id=24226
This one seems to be working, no need for the jquery plugin either.
So first remove the current linkedcustomfields plugin and the jquery plgin.
Next add the plugin from the link above.
Thank you very much!!! The plugin was installed correctly!
But the plugin itself does not work. Everything links like, but when creating a task, there is no connection between the lists. :(
Post Reply