AnsweredAssumed Answered

Mandatory selection for 'selectone.ftl' field in a Form

Question asked by d_franz on May 24, 2013
Latest reply on May 24, 2013 by mitpatoliya
I have generated a Forms for sepecific data types of my new data model. I am using some selectOne fields to fill up the metadata.

How can I make a selection of the select one mandatory? In the moment even when I set the field to mandatory (in content model definition) I can save without a selection.

In the moment I defined the selectone in"share-config-custome.xml" as follows:

<field id="nci:sensor_recordMode" set="SensorInfoGlobal">
   <control template="/org/alfresco/components/form/controls/selectone.ftl">
   <control-param name="options">scann,starr</control-param>                  
   <control-param name="forceEditable">true</control-param>

I defined the field in the content model as follows:

     <property name="nci:sensor_recordMode">
        <index enabled="true">