12-07-2015 12:30 PM
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
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
04-21-2020 04:05 PM
This an old post, but i figured I'd comment anyway.
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
<template>
<nuxeo-input role="widget" value="{{document.properties.myschemaName:myFieldName}}" label="Label" type="text" disabled$="{{_disableField(document)}}"></nuxeo-input>
</template>
<script>
Polymer(
{ is: 'nuxeo-yourdoctype-layout',
behaviors: [Nuxeo.LayoutBehavior],
properties: {
document: {
type: Object,
},
},
_disableField: function(doc) {
if(doc && doc.properties['shema_prefix:myField'] == "thisValue"){
return true;
}
return false;
},
});
</script>
04-21-2020 04:33 PM
Another example for nuxeo-directory-suggestion
elements https://github.com/nuxeo/nuxeo-studio-community-cookbook/tree/master/modules/nuxeo/cascading-fields
04-21-2020 04:35 PM
For any elements, simply use https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-filter
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.