anchor.diff:  <tags:createField property="defaultCompReason" component="${component}"/>
   <tags:createField property="defaultCompNote" component="${component}"/>
   </page:applyDecorator>
  + --%>
  +
  +<%-- if adding Instrument Config, add default option at same time --%>
  +<c:if test="${componentView == 'add'}">
  +<page:applyDecorator name="component.entity.section">
  +  <page:param name="sectionId">anonymous</page:param>
  +  <page:param name="sectionNameKey"> </page:param>
  +<tags:createField property="options[0].instrType" component="${component}" metadataName="protocolInstrumentConfig.instrType"/>
  +</page:applyDecorator>
  +</c:if>
   
   </page:applyDecorator>    
       
  
positive.code: <page:applyDecorator name="component.entity.section">
    <page:param name="sectionId">customCollect</page:param>
    <page:param name="sectionNameKey">${component}.customCollect.section</page:param>
  <tags:createField property="customCollectWinProtocolVisitConfigId" component="${component}"/>
  <tags:createField property="customCollectWinSize" component="${component}"/>
  <tags:createField property="customCollectWinOffset" component="${component}"/>
  </page:applyDecorator>
  
  <page:applyDecorator name="component.entity.section">
    <page:param name="sectionId">defaultStatus</page:param>
    <page:param name="sectionNameKey">${component}.defaultStatus.section</page:param>
  
negative.code:     
  </c:if>
  
  <ui:formGuide simulateEvents="true">
  	<ui:observeForNull elementIds="customCollectWinDefined" component="${component}"/>
  	<ui:disable elementIds="customCollectWinProtocolVisitConfigId,customCollectWinSize,customCollectWinOffset" component="${component}"/>
  	<ui:setValue elementIds="customCollectWinProtocolVisitConfigId,customCollectWinSize,customCollectWinOffset" component="${component}" value=""/>
  </ui:formGuide>
  
  </page:applyDecorator>    
  
  
  