Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You also cannot change the number of repeat items on the form. This is because the number is dictated by the minOccur in the schema. If minOccur=2 then there will by default be two repeat items displayed in the form designer, for example. Thus if you click the  displayed in the form designer on a repeat from schema, it will display a message indicating that this operation is not permitted. To change the number of items on the form, edit the schema and change minOccurs.  

It is not recommended to populate options on a from-schema selection control from a web service. If your business case requires this, make sure you do not have a restriction in the schema on the values/options.

Expand
titleClick here to see an example of restricted/unrestricted selection control elements...

Below is an example of a restricted selection control ("RadioJson") and one that has been modified to be unrestricted. This is the modification you would make if you need to populate the options from a webservice (not recommended).

Code Block
titleOptions Restricted
<xsd:element minOccurs="0" name="RadioJson" type="RadioJsonType">
            <xsd:annotation>
               <xsd:appinfo>
                  <frevvo:displaytype>Radio</frevvo:displaytype>
                  <frevvo:label>Radio json</frevvo:label>
                  <frevvo:itemLabel>Option 1</frevvo:itemLabel>
                  <frevvo:itemLabel>Option 2</frevvo:itemLabel>
                  <frevvo:itemLabel>Option 3</frevvo:itemLabel>
               </xsd:appinfo>
            </xsd:annotation>
         </xsd:element>
Code Block
titleUnrestricted
<xsd:element minOccurs="0" name="DropdownJson" type="xsd:string">
            <xsd:annotation>
               <xsd:appinfo>
                  <frevvo:displaytype>Dropdown</frevvo:displaytype>
                  <frevvo:label>Dropdown json</frevvo:label>
               </xsd:appinfo>
            </xsd:annotation>
         </xsd:element>

Adding Dropdown/Radio Options

...