<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic change field visibility based on a drop down list value in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319937#M6938</link>
    <description>&lt;P&gt;I'm using Nuxeo IDE and I'm looking for a way to show or hide a field based on a drop down list value&lt;/P&gt;
&lt;P&gt;For example
Drop down list values : A ; B
If the Drop down list value is A the field should be hidden ; if the value is B the field should be visible and this visibility should be dynamically changed when the Drop down list values change&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2015 17:30:51 GMT</pubDate>
    <dc:creator>ITShine_</dc:creator>
    <dc:date>2015-12-07T17:30:51Z</dc:date>
    <item>
      <title>change field visibility based on a drop down list value</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319937#M6938</link>
      <description>&lt;P&gt;I'm using Nuxeo IDE and I'm looking for a way to show or hide a field based on a drop down list value&lt;/P&gt;
&lt;P&gt;For example
Drop down list values : A ; B
If the Drop down list value is A the field should be hidden ; if the value is B the field should be visible and this visibility should be dynamically changed when the Drop down list values change&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:30:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319937#M6938</guid>
      <dc:creator>ITShine_</dc:creator>
      <dc:date>2015-12-07T17:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: change field visibility based on a drop down list value</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319938#M6939</link>
      <description>&lt;P&gt;This an old post, but i figured I'd comment anyway.&lt;/P&gt;
&lt;P&gt;One way to control this is by using polymer, this can be either disabled$= property or the hidden$= property.  Example below from a metadata layout&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;template&amp;gt;
&amp;lt;nuxeo-input role="widget" value="{{document.properties.myschemaName:myFieldName}}" label="Label" type="text"  disabled$="{{_disableField(document)}}"&amp;gt;&amp;lt;/nuxeo-input&amp;gt;

&amp;lt;/template&amp;gt;

&amp;lt;script&amp;gt;
Polymer(
{ is: 'nuxeo-yourdoctype-layout',

behaviors: [Nuxeo.LayoutBehavior],

properties: {

	document: {
		type: Object,
	},
},

_disableField: function(doc) {

if(doc &amp;amp;&amp;amp; doc.properties['shema_prefix:myField'] == "thisValue"){
	return true;
	}
	return false;
},
});
&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2020 20:05:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319938#M6939</guid>
      <dc:creator />
      <dc:date>2020-04-21T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: change field visibility based on a drop down list value</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319939#M6940</link>
      <description>&lt;P&gt;Another example for &lt;CODE&gt;nuxeo-directory-suggestion&lt;/CODE&gt; elements &lt;A href="https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/cascading-fields"&gt;https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/cascading-fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 20:33:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319939#M6940</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-04-21T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: change field visibility based on a drop down list value</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319940#M6941</link>
      <description>&lt;P&gt;For any elements, simply use &lt;A href="https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-filter"&gt;https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-filter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 20:35:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/change-field-visibility-based-on-a-drop-down-list-value/m-p/319940#M6941</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-04-21T20:35:59Z</dc:date>
    </item>
  </channel>
</rss>

