AnsweredAssumed Answered

Creating drop down in wcm form.

Question asked by supriya on Oct 26, 2007
Latest reply on Jun 26, 2009 by ruchiverma3
Hi,

I want to creat a drop down in my wcm form. I was looking at the wcm examples, it has sample code(press_release.xsd) which creates drop down like:

<xs:simpleType name="category">
    <xs:restriction base="xs:normalizedString">
      <xs:enumeration value="Product"/>
      <xs:enumeration value="Partnership"/>
      <xs:enumeration value="Company"/>
      <xs:enumeration value="Event"/>
      <xs:enumeration value="Training"/>
    </xs:restriction>
  </xs:simpleType>

and the using it like,

<xs:element name="category" type="pr:category" default="Company"/>

But when i try like:

<xs:simpleType name="job_type">
   <xs:restriction base="xs:normalizedString">
      <xs:enumeration value="FullTime Employee"/>
      <xs:enumeration value="Contractor"/>
      <xs:enumeration value="Temp to Permanent"/>
   </xs:restriction>
</xs:simpleType>

and call it like

<xs:element name="job_type" type="pr:job_type"/>

it creates radio button not drop down. Can any body help me out?

Is something defined in the alfresco nameSpace for "pr:category" tag, and because of that reason i am not able to create drop down.Please help, if anybody has done something like this.

Thanks!

Outcomes