https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292016-02-29T15:15:53ZRedmineRedmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=694842016-02-29T15:15:53ZToshi MARUYAMA
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/69484/diff?detail_id=53877">diff</a>)</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=695042016-03-02T17:06:10ZToshi MARUYAMA
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/69504/diff?detail_id=53895">diff</a>)</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=695412016-03-06T07:21:15ZHide MATSUTANI
<ul></ul><p>+1</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=701652016-04-05T13:28:38ZHide MATSUTANI
<ul></ul><p>Let me introduce that redmine-view-customize plugin could help the requirement.<br />Please refer to the following blog. (Japanese site)</p>
<p><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a></p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=701662016-04-05T14:27:29ZAnh Le Giang
<ul></ul><p>Hide MATSUTANI wrote:</p>
<blockquote>
<p>Let me introduce that redmine-view-customize plugin could help the requirement.<br />Please refer to the following blog. (Japanese site)</p>
<p><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a></p>
</blockquote>
<p>Could you please update English?</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=701672016-04-05T15:18:34ZHide MATSUTANI
<ul></ul><p>Okay, I'll try...</p>
<p>Conditional custom fields can be made by following procedure.</p>
<p>(1) Pre-condition<br />Custom Fileds cf_1 and cf_2 are defined in your Redmine.<br />Value lists are defined like follows.<br />Say, cf_1 is a parent and cf_2 is a child.</p>
<ul>
<li>cf_1
<ul>
<li>A</li>
<li>B</li>
</ul></li>
</ul>
<ul>
<li>cf_2
<ul>
<li>A-1</li>
<li>A-2</li>
<li>B-1</li>
<li>B-2</li>
</ul></li>
</ul>
<p>You will know the parentFieldId and the childFieldId when you check the html source code.</p>
<p>(2) Install redmine-view-customize plugin</p>
<pre>
cd {RAILS_ROOT}/plugins
git clone https://github.com/onozaty/redmine-view-customize.git view_customize
cd ../
rake redmine:plugins:migrate RAILS_ENV=production
</pre><br />Note that the target directory name is different from the repository name.
<p>When you finish installing, you can find 'view customize' in your Administration menu.</p>
<p>(3) Select 'view customize', then create 'New view customize' and set as follows:<br /><strong>Type</strong><br /><pre>
JavaScript
</pre><br /><strong>Path Pattern</strong><br /><pre>
/issues/
</pre><br /><strong>Code</strong><br /><pre><code class="js syntaxhl"><span class="nx">$</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="c1">// Note that you should change these IDs according to your environment.</span>
<span class="kd">var</span> <span class="nx">parentFieldId</span> <span class="o">=</span> <span class="dl">'</span><span class="s1">issue_custom_field_values_1</span><span class="dl">'</span><span class="p">;</span>
<span class="kd">var</span> <span class="nx">childFieldId</span> <span class="o">=</span> <span class="dl">'</span><span class="s1">issue_custom_field_values_2</span><span class="dl">'</span><span class="p">;</span>
<span class="c1">// define Conditions</span>
<span class="kd">var</span> <span class="nx">isTarget</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">child</span><span class="p">,</span> <span class="nx">parent</span><span class="p">)</span> <span class="p">{</span>
<span class="c1">// This is a left-hand match sample</span>
<span class="k">return</span> <span class="nx">child</span><span class="p">.</span><span class="nx">text</span><span class="p">().</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">parent</span><span class="p">.</span><span class="nx">text</span><span class="p">())</span> <span class="o">==</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="kd">var</span> <span class="nx">narrowChildField</span> <span class="o">=</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">parentSelected</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="dl">'</span><span class="s1">#</span><span class="dl">'</span> <span class="o">+</span> <span class="nx">parentFieldId</span> <span class="o">+</span> <span class="dl">'</span><span class="s1"> > option:selected</span><span class="dl">'</span><span class="p">);</span>
<span class="nx">$</span><span class="p">(</span><span class="dl">'</span><span class="s1">#</span><span class="dl">'</span> <span class="o">+</span> <span class="nx">childFieldId</span> <span class="o">+</span> <span class="dl">'</span><span class="s1"> > option</span><span class="dl">'</span><span class="p">).</span><span class="nx">each</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">child</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">isTarget</span><span class="p">(</span><span class="nx">child</span><span class="p">,</span> <span class="nx">parentSelected</span><span class="p">))</span> <span class="p">{</span>
<span class="nx">child</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
<span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
<span class="nx">child</span><span class="p">.</span><span class="nx">hide</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">});</span>
<span class="p">}</span>
<span class="nx">narrowChildField</span><span class="p">();</span>
<span class="nx">$</span><span class="p">(</span><span class="dl">'</span><span class="s1">#all_attributes</span><span class="dl">'</span><span class="p">).</span><span class="nx">change</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">target</span><span class="p">.</span><span class="nx">id</span> <span class="o">==</span> <span class="nx">parentFieldId</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">narrowChildField</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">});</span>
<span class="kd">var</span> <span class="nx">_replaceIssueFormWith</span> <span class="o">=</span> <span class="nx">replaceIssueFormWith</span><span class="p">;</span>
<span class="nx">replaceIssueFormWith</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">html</span><span class="p">){</span>
<span class="nx">_replaceIssueFormWith</span><span class="p">(</span><span class="nx">html</span><span class="p">);</span>
<span class="nx">narrowChildField</span><span class="p">();</span>
<span class="p">};</span>
<span class="p">});</span>
</code></pre></p>
<p>Then you can get the conditional custom fields.<br />When you select in the parent as 'A', you can only select 'A-1' or 'A-2' in the child field.</p>
<p>Is this clear?</p>
<p>Original information:<br /><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a><br /><a class="external" href="https://github.com/onozaty/redmine-view-customize">https://github.com/onozaty/redmine-view-customize</a></p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=702362016-04-09T08:02:01ZDipan Mehta
<ul></ul><p>The case listed in the description is indeed very relevant. However, in my view - the most simple yet generic way you can get this done well is to implement feature <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a> and related <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a>. You can have list of possible values as a dynamic set based on some other field value. There are many issues related to <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a> which are similar to this one.</p>
<p>Do add related <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Populate dropdown custom field list based on previous another selection (New)" href="https://www.redmine.org/issues/13143">#13143</a>.</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=703232016-04-13T16:18:48ZHide MATSUTANI
<ul></ul><p>Dipan Mehta wrote:</p>
<blockquote>
<p>The case listed in the description is indeed very relevant. However, in my view - the most simple yet generic way you can get this done well is to implement feature <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a> and related <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a>. You can have list of possible values as a dynamic set based on some other field value. There are many issues related to <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a> which are similar to this one.</p>
<p>Do add related <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Populate dropdown custom field list based on previous another selection (New)" href="https://www.redmine.org/issues/13143">#13143</a>.</p>
</blockquote>
<p><a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Populate dropdown custom field list based on previous another selection (New)" href="https://www.redmine.org/issues/13143">#13143</a> is the same as <a class="issue tracker-2 status-1 priority-5 priority-high2" title="Feature: Conditional custom fields (New)" href="https://www.redmine.org/issues/22026">#22026</a>. Actually these issues can be merged. My previous post could be a provisional way to achieve the purpose until this feature is formally implemented.<br /><a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a> are similar to this from a user point of view, but I think they are different because <a class="issue tracker-2 status-1 priority-5 priority-high2" title="Feature: Conditional custom fields (New)" href="https://www.redmine.org/issues/22026">#22026</a>,<a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Populate dropdown custom field list based on previous another selection (New)" href="https://www.redmine.org/issues/13143">#13143</a> actually use a client-side technology, whereas <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom list field with dynamic list content (New)" href="https://www.redmine.org/issues/6717">#6717</a>, <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Custom field , value list from database query (New)" href="https://www.redmine.org/issues/9734">#9734</a> are server-side technology.</p>
<p>I feel the client-side technology is better because it should be responsive -- as it is discussed in the <a class="issue tracker-2 status-1 priority-5 priority-high2" title="Feature: Conditional custom fields (New)" href="https://www.redmine.org/issues/22026">#22026</a><br /><a class="external" href="http://railscasts.com/episodes/88-dynamic-select-menus">http://railscasts.com/episodes/88-dynamic-select-menus</a></p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=707052016-05-05T03:54:23ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/6717">Feature #6717</a>: Custom list field with dynamic list content</i> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=707072016-05-05T03:54:38ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/9734">Feature #9734</a>: Custom field , value list from database query</i> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=707092016-05-05T03:55:16ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/13143">Feature #13143</a>: Populate dropdown custom field list based on previous another selection </i> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=710612016-05-21T16:54:57ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/22621">Feature #22621</a>: Linked/conditional custom fields</i> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=738662016-10-03T09:22:18ZStephane Evr
<ul></ul><p>+1</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=747002016-11-25T10:40:14ZSonia Zh
<ul></ul><p>+1</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=748552016-12-05T08:57:39ZNova Pun
<ul></ul><p>Where can i find the custom_field_id ? I try to use "3" and "4" from address:</p>
<p>"http://ils.rainbowconcept.com:3000/custom_fields/3/edit" "http://ils.rainbowconcept.com:3000/custom_fields/4/edit"</p>
<p>, but it's no work ! thanks !</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=789462017-06-01T22:05:00ZRoberto Tavares
<ul></ul><p>Hello!</p>
<p>Is it possible to customize project custom fields the same way as issues custom fields? Than I use "/projects/" in the "Path Pattern" field in the plugin... but besides this, where I have to adapt the code?</p>
<p>Thanks a lot!</p>
<p>Hide MATSUTANI wrote:</p>
<blockquote>
<p>Okay, I'll try...</p>
<p>Conditional custom fields can be made by following procedure.</p>
<p>(1) Pre-condition<br />Custom Fileds cf_1 and cf_2 are defined in your Redmine.<br />Value lists are defined like follows.<br />Say, cf_1 is a parent and cf_2 is a child.</p>
<ul>
<li>cf_1
<ul>
<li>A</li>
<li>B</li>
</ul></li>
</ul>
<ul>
<li>cf_2
<ul>
<li>A-1</li>
<li>A-2</li>
<li>B-1</li>
<li>B-2</li>
</ul></li>
</ul>
<p>You will know the parentFieldId and the childFieldId when you check the html source code.</p>
<p>(2) Install redmine-view-customize plugin</p>
<p>[...]<br />Note that the target directory name is different from the repository name.</p>
<p>When you finish installing, you can find 'view customize' in your Administration menu.</p>
<p>(3) Select 'view customize', then create 'New view customize' and set as follows:<br /><strong>Type</strong><br />[...]<br /><strong>Path Pattern</strong><br />[...]<br /><strong>Code</strong><br />[...]</p>
<p>Then you can get the conditional custom fields.<br />When you select in the parent as 'A', you can only select 'A-1' or 'A-2' in the child field.</p>
<p>Is this clear?</p>
<p>Original information:<br /><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a><br /><a class="external" href="https://github.com/onozaty/redmine-view-customize">https://github.com/onozaty/redmine-view-customize</a></p>
</blockquote> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=792042017-06-14T03:01:57Z膺升 陳
<ul></ul><p>Hi all,</p>
<p>We got a problem as below,<br />After installing the plug-in,we can see "view customize" in Administrator menu,it is fine.<br />And then we just follow the steps as MATSUTANI mentioned,seems like it cannot work normally.<br />When we select parent as "A",not only "A-1","A-2" can be selected but also "B-1" and "B-2".<br />Could anyone give us a favor?Thanks in advanced.</p>
<p>Hide MATSUTANI wrote:</p>
<blockquote>
<p>Okay, I'll try...</p>
<p>Conditional custom fields can be made by following procedure.</p>
<p>(1) Pre-condition<br />Custom Fileds cf_1 and cf_2 are defined in your Redmine.<br />Value lists are defined like follows.<br />Say, cf_1 is a parent and cf_2 is a child.</p>
<ul>
<li>cf_1
<ul>
<li>A</li>
<li>B</li>
</ul></li>
</ul>
<ul>
<li>cf_2
<ul>
<li>A-1</li>
<li>A-2</li>
<li>B-1</li>
<li>B-2</li>
</ul></li>
</ul>
<p>You will know the parentFieldId and the childFieldId when you check the html source code.</p>
<p>(2) Install redmine-view-customize plugin</p>
<p>[...]<br />Note that the target directory name is different from the repository name.</p>
<p>When you finish installing, you can find 'view customize' in your Administration menu.</p>
<p>(3) Select 'view customize', then create 'New view customize' and set as follows:<br /><strong>Type</strong><br />[...]<br /><strong>Path Pattern</strong><br />[...]<br /><strong>Code</strong><br />[...]</p>
<p>Then you can get the conditional custom fields.<br />When you select in the parent as 'A', you can only select 'A-1' or 'A-2' in the child field.</p>
<p>Is this clear?</p>
<p>Original information:<br /><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a><br /><a class="external" href="https://github.com/onozaty/redmine-view-customize">https://github.com/onozaty/redmine-view-customize</a></p>
</blockquote> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=800312017-07-14T10:37:12Zchris k
<ul></ul><p>Hi,</p>
<p>only for custom fields it works??? Thnx</p>
<p>Hide MATSUTANI wrote:</p>
<blockquote>
<p>Okay, I'll try...</p>
<p>Conditional custom fields can be made by following procedure.</p>
<p>(1) Pre-condition<br />Custom Fileds cf_1 and cf_2 are defined in your Redmine.<br />Value lists are defined like follows.<br />Say, cf_1 is a parent and cf_2 is a child.</p>
<ul>
<li>cf_1
<ul>
<li>A</li>
<li>B</li>
</ul></li>
</ul>
<ul>
<li>cf_2
<ul>
<li>A-1</li>
<li>A-2</li>
<li>B-1</li>
<li>B-2</li>
</ul></li>
</ul>
<p>You will know the parentFieldId and the childFieldId when you check the html source code.</p>
<p>(2) Install redmine-view-customize plugin</p>
<p>[...]<br />Note that the target directory name is different from the repository name.</p>
<p>When you finish installing, you can find 'view customize' in your Administration menu.</p>
<p>(3) Select 'view customize', then create 'New view customize' and set as follows:<br /><strong>Type</strong><br />[...]<br /><strong>Path Pattern</strong><br />[...]<br /><strong>Code</strong><br />[...]</p>
<p>Then you can get the conditional custom fields.<br />When you select in the parent as 'A', you can only select 'A-1' or 'A-2' in the child field.</p>
<p>Is this clear?</p>
<p>Original information:<br /><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a><br /><a class="external" href="https://github.com/onozaty/redmine-view-customize">https://github.com/onozaty/redmine-view-customize</a></p>
</blockquote> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=824112017-12-03T08:29:51ZAleksandar Pavic
<ul></ul><p>+1 for this feature.</p>
<p>Conditional custom fields (maybe per issue category), or have some different parent-child relation for custom fields.</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=868142018-08-27T19:14:21ZDarwin Pou
<ul></ul><p>+1 for this feature. For example, I would like to look for in my customers database or Rest Webapi in order fill read-only text fields.<br />i.e.</p>
<p>Document Type: Hard List. Legal Id, Personal Document Id, etc.<br />Document: 00112760122<br />My webapi could return Name, LastName and use Redmine to complete this information in the form.</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=913442019-04-25T15:06:19ZFer nando
<ul></ul><p>Is there any progress on the Father-Son fields?</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=940752019-10-01T13:17:43ZBernhard Rohloff
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default" href="/issues/32178">Feature #32178</a>: Conditioned Custom Fields</i> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=993362020-10-02T08:40:20ZStefan Lindner
<ul></ul><p>+1</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=1005222021-01-11T14:18:58ZRoberto Mendes
<ul></ul><p>Working Perfectly!!! Thanks a lot!!!! \o/</p> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=1005232021-01-11T14:41:33ZRoberto Mendes
<ul><li><strong>File</strong> <a href="/attachments/26529">Captura de tela 2021-01-11 112113.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/26529/Captura%20de%20tela%202021-01-11%20112113.png">Captura de tela 2021-01-11 112113.png</a> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=1005242021-01-11T14:41:54ZRoberto Mendes
<ul><li><strong>File</strong> <a href="/attachments/26530">Captura de tela 2021-01-11 111951.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/26530/Captura%20de%20tela%202021-01-11%20111951.png">Captura de tela 2021-01-11 111951.png</a> added</li></ul> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=1005252021-01-11T15:00:12ZRoberto Mendes
<ul></ul><p>Thanks MATSUTANI!!!</p>
<p>Hide MATSUTANI wrote:</p>
<blockquote>
<p>Okay, I'll try...</p>
<p>Conditional custom fields can be made by following procedure.</p>
<p>(1) Pre-condition<br />Custom Fileds cf_1 and cf_2 are defined in your Redmine.<br />Value lists are defined like follows.<br />Say, cf_1 is a parent and cf_2 is a child.</p>
<ul>
<li>cf_1
<ul>
<li>A</li>
<li>B</li>
</ul></li>
</ul>
<ul>
<li>cf_2
<ul>
<li>A-1</li>
<li>A-2</li>
<li>B-1</li>
<li>B-2</li>
</ul></li>
</ul>
<p>You will know the parentFieldId and the childFieldId when you check the html source code.</p>
<p>(2) Install redmine-view-customize plugin</p>
<p>[...]<br />Note that the target directory name is different from the repository name.</p>
<p>When you finish installing, you can find 'view customize' in your Administration menu.</p>
<p>(3) Select 'view customize', then create 'New view customize' and set as follows:<br /><strong>Type</strong><br />[...]<br /><strong>Path Pattern</strong><br />[...]<br /><strong>Code</strong><br />[...]</p>
<p>Then you can get the conditional custom fields.<br />When you select in the parent as 'A', you can only select 'A-1' or 'A-2' in the child field.</p>
<p>Is this clear?</p>
<p>Original information:<br /><a class="external" href="http://blog.enjoyxstudy.com/entry/2016/04/03/000000">http://blog.enjoyxstudy.com/entry/2016/04/03/000000</a><br /><a class="external" href="https://github.com/onozaty/redmine-view-customize">https://github.com/onozaty/redmine-view-customize</a></p>
</blockquote> Redmine - Feature #22026: Conditional custom fieldshttps://www.redmine.org/issues/22026?journal_id=1026252021-06-01T22:11:05ZAlexandr Chernyaev
<ul></ul><p>+1</p>