Advanced Form
This example illustrates advance uses of the qForms API. It shows how you can easily create advanced functionality in your forms, without having to know a lot about JavaScript.

Pay close attention to the rules of the page. By default, only "Name" and "E-mail" fields are required. However, as soon as you select a "Favorite Sport" the "Favorite Team" becomes required. Selecting any sport, except "Other", will force you to select a team from the list of valid professional teams. The "Other" and "Favorite Team" input boxes are disabled by default.

If you select "Other" as your favorite sport, then you're required to fill in the "Other" input box as well as manually type in your "Favorite Team." If a value is entered in the "Other" text box and then a different sport is selecting, the value in the "Other" input box is cleared. However, reselecting the "Other" option will repopulate the "Other" input box with the lastValue property of the field.

Name: [*]

E-mail: [*]

Favorite Professional Sport
Football (NFL)
Basketball (NBA)
Soccer (MLS)
Hockey (NHL)

Favorite Team:

You can select your favorite team from here:

[*] Required fields

[More Examples] [Documentation]