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.
@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.
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?
@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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.