...
If you want to change whether or not the control is required:
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 Code Block </xsd:element> <xsd:element minOccurs="0" name="OptionalText" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <frevvo:displaytype>Text</frevvo:displaytype> <frevvo:label>OptionalText</frevvo:label> </xsd:appinfo> </xsd:annotation> </xsd:element>
Column Code Block if(tr1.clicked){ Non_RequiredControl.required = true; }
Column - Edit the XSD and update it in the schema's tab for that application.
...