*
Please review your options before sending the form.

Acme Corp. order

Please fill out all fields marked as required !
Last name, first name
Street, Number
City

 

Payment options:

 
Credit card
Please fill all fields!
number
valid
institute
Bill  
   
 

 

This form is an example showing the usage of groups. The elements that take the credit card data are only required when the Credit Card Radiobutton is switched on. For this purpose, the elements are grouped. The group's container element contains a conditional requirement:

<div forx:group="creditdata" forx:grouprequires="all" forx:required="if pay_card=='CHECKED'" style="display:none;color:#ffcccc;font-weight:bold" forx:highlight="false">

The keyword CHECKED is used to check for a selected radiobutton or checkbox. pay_card is the forx:id of the appropriate radiobutton.

See the simple example for an explanation of the other elements.