<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Want to hide some fields from advance search form in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61712#M21493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a customModel and using this custom model to customise advance search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my customModel.xml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Custom Model --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Note: This model is pre-configured to load at startup of the Repository. So, all custom --&amp;gt;&lt;BR /&gt;&amp;lt;!-- types and aspects added here will automatically be registered --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;model name="custom:customModel" xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Optional meta-data about the model --&amp;gt; &lt;BR /&gt; &amp;lt;description&amp;gt;Custom Model&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;imports&amp;gt;&lt;BR /&gt; &amp;lt;!-- Import Alfresco Dictionary Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="d"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;!-- Import Alfresco Content Domain Model Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="cm"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/imports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Introduction of new namespaces defined by this model --&amp;gt;&lt;BR /&gt; &amp;lt;!-- NOTE: The following namespace custom.model should be changed to reflect your own namespace --&amp;gt;&lt;BR /&gt; &amp;lt;namespaces&amp;gt;&lt;BR /&gt; &amp;lt;namespace uri="custom.model" prefix="custom"/&amp;gt;&lt;BR /&gt; &amp;lt;/namespaces&amp;gt;&lt;BR /&gt; &amp;lt;constraints&amp;gt;&lt;BR /&gt; &amp;lt;constraint name="custom&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductListConstraint" type="LIST"&amp;gt;&lt;BR /&gt; &amp;lt;parameter name="allowedValues"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;policyNumber&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;ClaimNumber&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;DocumentId&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/parameter&amp;gt;&lt;BR /&gt; &amp;lt;/constraint&amp;gt;&lt;BR /&gt; &amp;lt;/constraints&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;types&amp;gt;&lt;BR /&gt; &amp;lt;type name="custom&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rotocollazione"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Protocollo&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt; &lt;BR /&gt; &amp;lt;type name="custom:marketingDoc"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;MyCompany Marketing Document&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;custom&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rotocollazione&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;properties&amp;gt;&lt;BR /&gt; &amp;lt;property name="custom:smartSearch"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;&lt;BR /&gt; &amp;lt;constraints&amp;gt;&lt;BR /&gt; &amp;lt;constraint ref="custom&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductListConstraint" /&amp;gt;&lt;BR /&gt; &amp;lt;/constraints&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/properties&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;type name="custom:white"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;MyCompany Whitepaper&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;custom:marketingDoc&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;/types&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;aspects&amp;gt;&lt;BR /&gt; &amp;lt;aspect name="custom:numP"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Numero Protocollazione&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;properties&amp;gt;&lt;BR /&gt; &amp;lt;property name="custom:numeroP"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Numero&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:int&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/properties&amp;gt;&lt;BR /&gt; &amp;lt;/aspect&amp;gt; &lt;BR /&gt; &amp;lt;/aspects&amp;gt;&lt;BR /&gt;&amp;lt;/model&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my custom-model-context.xml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Registration of new models --&amp;gt; &lt;BR /&gt; &amp;lt;bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"&amp;gt;&lt;BR /&gt; &amp;lt;property name="models"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;alfresco/extension/customModel.xml&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In share-config i added the form label smart search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;config evaluator="string-compare" condition="AdvancedSearch"&amp;gt;&lt;BR /&gt; &amp;lt;advanced-search&amp;gt;&lt;BR /&gt; &amp;lt;!-- Forms for the advanced search type list --&amp;gt;&lt;BR /&gt; &amp;lt;forms&amp;gt;&lt;BR /&gt; &amp;lt;!--&lt;BR /&gt; The 'form' config element contains the name of the model type&lt;BR /&gt; of the form to display.&lt;BR /&gt; &lt;BR /&gt; The element supports the following optional attributes:&lt;BR /&gt; id = form id, the id of "search" will be assumed if not set&lt;BR /&gt; label = label text to display - defaults to model type if not set&lt;BR /&gt; labelId = I18N message id of label text to display&lt;BR /&gt; description = description text to display&lt;BR /&gt; descriptionId = I18N message id of description text to display&lt;BR /&gt; --&amp;gt;&lt;BR /&gt; &amp;lt;form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content"&amp;gt;cm:content&amp;lt;/form&amp;gt;&lt;BR /&gt; &amp;lt;form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder"&amp;gt;cm:folder&amp;lt;/form&amp;gt;&lt;BR /&gt; &lt;STRONG&gt;&amp;lt;form label="smart search" description="search document by matadata"&amp;gt;custom:white&amp;lt;/form&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt; &amp;lt;/forms&amp;gt;&lt;BR /&gt; &amp;lt;/advanced-search&amp;gt;&lt;BR /&gt; &amp;lt;/config&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot of my customised advanced search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/22954_pastedImage_11.png" /&gt;&lt;STRONG&gt;&amp;nbsp;My requirement is to hide other fields except&amp;nbsp;&lt;STRONG&gt;custom:smartSearch.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In this smart search form custom:smartSearch field is visible. My requirement is- I need only&amp;nbsp;custom:smartSearch field and hide other fields i.e Created Date, Creator, Name, Locale, Modifier, etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't know how to hide these fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone help me to hide&amp;nbsp;&lt;STRONG&gt;Created Date, Creator, Name, Locale, Modifier, etc. &lt;/STRONG&gt;fields except&amp;nbsp;&lt;STRONG&gt;custom:smartSearch&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 14:41:34 GMT</pubDate>
    <dc:creator>shashank_tyagi</dc:creator>
    <dc:date>2018-08-21T14:41:34Z</dc:date>
    <item>
      <title>Want to hide some fields from advance search form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61712#M21493</link>
      <description>Hi,I have created a customModel and using this custom model to customise advance search.my customModel.xml:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;!-- Custom Model --&amp;gt;&amp;lt;!-- Note: This model is pre-configured to load at startup of the Repository. So, all custom --&amp;gt;&amp;lt;!-- types and as</description>
      <pubDate>Tue, 21 Aug 2018 14:41:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61712#M21493</guid>
      <dc:creator>shashank_tyagi</dc:creator>
      <dc:date>2018-08-21T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Want to hide some fields from advance search form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61713#M21494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare your custom form with &lt;STRONG&gt;id='search'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some samples available at&amp;nbsp;&lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-6013-share-advanced-search" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/docs/DOC-6013-share-advanced-search&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 10:00:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61713#M21494</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-08-22T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Want to hide some fields from advance search form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61714#M21495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks now i am able to hide other fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 10:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-hide-some-fields-from-advance-search-form/m-p/61714#M21495</guid>
      <dc:creator>shashank_tyagi</dc:creator>
      <dc:date>2018-08-22T10:31:20Z</dc:date>
    </item>
  </channel>
</rss>

