cancel
Showing results for 
Search instead for 
Did you mean: 

dropdown allowing blanks for mandatory=true

jcblitz
Champ in-the-making
Champ in-the-making
I want the select box to initially be blank and only allow the two values listed values to be valid. For some reason it's going against two things (at least how I see it), allowing blank goes against allowedValues and the lack of value goes against the mandatory. Can anyone shed light on why my configuration isn't providing that functionality? My custom extension config looks like this snippet


          <property name="psf:plateFormat">
               <title>Plate Format</title>
               <type>d:text</type>
               <mandatory>true</mandatory>
               <default></default>
               <constraints>
                  <constraint ref="psf:plateFormat"/>
               </constraints>
            </property>


      <constraint name="psf:plateFormat" type="LIST">
         <parameter name="allowedValues">
            <list>
               <value>96 Well</value>
               <value>384 Well</value>
            </list>            
         </parameter>
      </constraint>

4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
try changing the mandatory definition to:

<mandatory enforced="true">true</mandatory>

jcblitz
Champ in-the-making
Champ in-the-making
try changing the mandatory definition to:

<mandatory enforced="true">true</mandatory>

I have changed it to

<property name="psf:plateFormat">
               <title>Plate Format</title>
               <type>d:text</type>
               <mandatory enforced="true">true</mandatory>
               <default></default>
               <constraints>
                  <constraint ref="psf:plateFormat"/>
               </constraints>
            </property>

but now I don't have the initial blank anymore.

tfpadilla
Champ in-the-making
Champ in-the-making
I have the same problem.
Have you already solved it?
Thanks in advance.

jcblitz
Champ in-the-making
Champ in-the-making
I have the same problem.
Have you already solved it?
Thanks in advance.

Nope, hopefully someone else will see this and provide some insight.