Displays an error message for each of the obligatory fields from the HTML document that have not been filled yet. See the IBEX documentation about the Form controller for a discussion of how fields are set as obligatory.




@newHtml("demographics", "example_intro.html")
@    .print()
@newButton("continue", "Continue to the next page")
@    .print()
@    .wait(
@        getHtml("demographics").test.complete()
$            .failure( getHtml("demographics").warn() )
@    )
  • Prints the content of exampleintro.html_ onto the page and adds a Continue button below it. The button is validated only when all the obligatory fields from exampleintro.html_ have been filled.

  • If the button is clicked and at least one obligatory field has not been filled, the warn command is executed and will display an appropriate error message.