Versions Compared

Key

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

...

Another way to set the labels is via a rule to dynamically initialize the options when the form loads. See the Business Rules chapter for more details. Also see the section on dynamic initialization from database SQL queries.

The Display As property is not available for the following schema controls: Message, Date, Time, Date/Time, T/F, ComboBox.

...

  1. Write a business rule to make the field required.

    Let's say a designer created a form from a schema that contained a non-required Text field - minOccurs = 0.  The designer adds a Trigger control named tr1 and this simple rule to make the field required when the trigger control is clicked.

    Here is the relevant section of the xsd:

    Section
    Column
    width33%
    Code Block
    </xsd:element>
             <xsd:element minOccurs="0" name="NonRequiredControl" type="xsd:string">
                <xsd:annotation>
                   <xsd:appinfo>
                      <frevvo:displaytype>Text</frevvo:displaytype>
                      <frevvo:label>Non Required Control</frevvo:label>
                   </xsd:appinfo>
                </xsd:annotation>
             </xsd:element>
    Column
    width33%
    Code Block
    if(tr1.clicked){
    NonRequiredControl.required = true;
    }

    Same Rule as above built with the Visual Rule Builder

    Column
    width34%

     

  2. Edit the XSD and update it in the schema's tab for that project.

...