09-02-2021 09:46 AM
Hi! I have an advanced search and currently I have a limitation: the dropdowns select always a value by default. I need that the dropdown values are not included if users does not select a value manually. So it should be a blank or something similar by default.
Could someone point me in the right direction? thanks.
09-02-2021 10:36 AM
@davidzuluaga5 wrote:
Hi! I have an advanced search and currently I have a limitation: the dropdowns select always a value by default. I need that the dropdown values are not included if users does not select a value manually. So it should be a blank or something similar by default.
Could someone point me in the right direction? thanks.
Checkout the solutions here: https://hub.alfresco.com/t5/alfresco-content-services-forum/share-customization-could-not-make-the-a...
Two possible solutions:
1- You can use a custom form template for that property that will display all the values along with default blank
2- Add the "" (empty) in constraint list used for a property defined in your content model.
09-02-2021 11:56 PM
I have a same use case where I need to add blank or empty string as first option so user can have a choice to select or not.
But in advance search I want to select all document if user select blank, will this work with above solution?
09-03-2021 12:48 PM
@sanjaybandhniya wrote:
I have a same use case where I need to add blank or empty string as first option so user can have a choice to select or not.
But in advance search I want to select all document if user select blank, will this work with above solution?
That is not something template/setting blank would handle. It has be to and update in search query. Also you can extend the search library to add an additonal check when blank is selected do the required search as per your requirement.
Explore our Alfresco products with the links below. Use labels to filter content by product module.