views:

15

answers:

0

I have an attribute in an xsd I am trying to modify when the user is authoring the infopath form. There are three choice sections in a choice group and I would like to change to a different value for my attribute when the user chooses a different choice section.

This is what my attribute looks like. I would like to switch to one of the enumerated values when the user chooses a different choice section. Thanks for any help anyone can provide. I just have not done a lot of code behind for infopath forms and have primarily worked in the designer.

If any more info is needed from me please ask so I can provide it.

<xs:attribute name="type" use="required">
        <xs:simpleType>
           <xs:restriction base="xs:string">
              <xs:enumeration value="layout1"/>
              <xs:enumeration value="layout2"/>
              <xs:enumeration value="layout3"/>
           </xs:restriction>
        </xs:simpleType>
     </xs:attribute>