AnsweredAssumed Answered

Alfresco Share custom search form - non-mandatory search field for constrained aspect

Question asked by marcollirite on May 2, 2017
Latest reply on Jun 23, 2017 by douglascrp

Hi all


I am currently working on defining search forms for my custom content model. In this model, I have an aspect (projectRelated) which allows the selection of a value (a project) from a constrained list. However, this is not a mandatory aspect, and not all of my documents will have a value for this aspect.


This leads to a problem when configuring my search form for my custom content type. If I want to include this aspect as a searchable parameter, I currently have to choose a value from this list, which means any documents which don't have this aspect applied to them are automatically excluded from the search. I am looking for a way to search without having to set this value (e.g. by choosing an "unknown" or "none" value from the dropdown list). Any ideas?