AnsweredAssumed Answered

WCM Web Forms - any way to choose between element tags?

Question asked by gennaromonaco on May 30, 2007
Latest reply on Jun 5, 2007 by kvc
Is there any way to create a .wsd that allows the form user to select between one of two different element tags?

For instance, I currently have:


   <xs:element name="test_form">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="spots" minOccurs="1" maxOccurs="unbounded">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="type" type="xs:normalizedString"/>
                     <xs:element name="title" type="xs:normalizedString"/>
                     <xs:element name="blurb" type="xs:string"/>
                     <xs:element name="image" type="xs:anyURI"/>
                     <xs:element name="url" type="xs:normalizedString"/>
                     <xs:element name="target" default="_top">
                        <xs:simpleType>
                           <xs:restriction base="xs:string">
                              <xs:enumeration value="_top"/>
                              <xs:enumeration value="_blank"/>
                           </xs:restriction>
                        </xs:simpleType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>

… but what I would really like is to have the user decide whether or not he/she would like to provide a url or an internal_url.

Basically, the form would give them a choice of picking one of those fields (elements) or the other.

Possible?

Thanks!

Outcomes