Versions Compared

Key

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

...

Adding multiple data sources from the same namespace will cause a clash in your form. And in fact

Frevvoproduct
 will assist you by preventing you from making this mistake. A warning message is displayed in the Add Data Source panel when you click plus.

Similarly, multiple XSD files composing a single logical namespace is not supported. Instead, merge all XSD files for the same namespace into a single XSD file and then upload into frevvo.

Generating Controls from Schema Elements

...

If you add an element with enumerations from schema to your form, any dynamic options must conform to the schema.  For example, you can create a drop down from a schema that restricts values to say red, green, blue and in a rule set the options to Mr, Mrs and Ms. In the form if you choose one of the values from the dropdown (Mr) you will get an Invalid value message since it's not part of the original schema.

Annotations

TBD

Updating a Schema

If you need to make changes beyond those allowed in the Forms Designer, make the changes in your XSD file and replace the old schema in your

Frevvoproduct
 application with the new one. 

To update a schema:

...

Message Control in Repeat

To add a Message Control to your schema-based Repeat control, add an element like this to your schema:

Code Block
<xsd:element default="Message" minOccurs="0" name="MessageControl" type="xsd:string">
			<xsd:annotation>
				<xsd:appinfo>
					<frevvo:displaytype>Message</frevvo:displaytype>
					<frevvo:label>Message Control</frevvo:label>
				</xsd:appinfo>
			</xsd:annotation>
			</xsd:element>

Add this attribute in the <xsd:schema tag (it is most likely on line# 2 in the schema file):

Code Block
xmlns:frevvo=http://www.frevvo.com/appinfo

Updating a Schema

If you need to make changes beyond those allowed in the Forms Designer, make the changes in your XSD file and replace the old schema in your

Frevvoproduct
 application with the new one. 

To update a schema:

  1. Click Schemas from the left-hand menu. (Remember, schemas are application-specific, so if you don’t see your schema, it may be in another application.) 
  2. You’ll see a list of all uploaded schemas. Click the Update icon underneath the name of the schema you are updating.
  3. On the Update Schema page, click Browse and locate the new XSD file. You may change the schema name and description but this is optional. Remove the Root XSD file information if it does not apply.
  4. Click Update.

...

Also elements added to the form from the Data Source that are repeating elements are automatically added into the associated repeat control(s) if any already exist on your form. While all non-repeating controls are simply added to the top of the form when added from the Data Source.

Tip

Searching submissions using a Repeat control from schema is not supported.

...

Schemas Choice Groups are not yet supported. The 1st choice appear on the form as required even though only one is. Do not use elements of type Choice in your forms. 


Code Block
languagehtml/xml
<xs:element name="promotion">
  <complexType>
    <choice>
       <element name="Discount" /> 
       <element name="None" />
     </choice>
   </complexType>
</xs:element>

...

Schema controls can be initialized from an xml document using the form's doc action and manually set document URIs. See the integration chapter with details on initializing Forms with XML Documents.