cancel
Showing results for 
Search instead for 
Did you mean: 

Add aspect on change of dropdown list

davidh
Champ in-the-making
Champ in-the-making
Hi,

Currently, we have a custom data model which includes one Type (cm:folder), which itself, contains one mandatory aspect. This aspect has a number of properties, one of which we use a constraint of 'List'. On the share-config-custom.xml, we use the control template of selectmany.ftl for that property with the constraint.
Now, our issue is, when the user is editing properties, and selects an item from that multi-select control, we want another aspect to appear within the edit properties page (i.e. they select an item in the list, which adds an aspect, allowing the user to fill in the properties of that other aspect before they leave that page, either by clicking cancel or Save).

In other words, rather than using a custom rule to add the aspect once the item in question has been updated, we want to add a aspect during the editing properties phase depending on what option the user has selected in the multi-select option.
e.g. Steps for what we want:
1/ Create a folder
2/ Change the folder type to 'Case' (our own Type - which has a mandatory aspect called 'Case Data')
3/ User edits the 'Case Data' properties of the folder, one of which is a multi-select option.
4/ The user selects the item 'Investigation Log' in the multi-select option
5/ (here is what we want to happen) The Investigation Log aspect is added allowing the user to fill in the properties without leaving the page.

I am fairly new to Alfresco and any help will be greatly appreciated.

Many Thanks
David
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

such a dynamic show/hide feature of additional metadata sets is not available OOTB. You would have to implement your own set of controls / form sets that are able to react like that.
In your form configurations, you would include all potential metadata fields and have your sets set up in a way that only the applicaple sets are shown in the UI (the rest are all generated and available, but hidden via JS / CSS). You need to establish some kind of relation between the multi value field and your sets (JS event mechanism), requiring you to develop at least one custom multi list control FTL + JS and one custom set FTL + JS.

Regards
Axel

deeps
Champ in-the-making
Champ in-the-making
Hi,

I am also having same problem.

i am having multiple field sets, and i want to show only one at a time based on the value i will select from drop down.
can you please help me to achieve it on my alfresco property page.

Its really on high priority.

please suggest me something to do this.

Thanks in advance.
Getting started

Tags


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.