HowTo: Highlight required form fields

This article will show you how to let your form user know, all at once and before sending the information, about each required field that hasn't been filled in. Each required field will be highlighted in yellow while it is empty.

Steps:

1. Open PHPRunner/ASPRunnerPro project and proceed to Visual Editor tab.

2. In "Edit as" settings check off needed fields as Required Field.

3. Build your project and view generated files in the browser.

For the PHPRunner/ASPRunner.NET/ASPRunnerPro:

1. Proceed to the Events tab.

2. Add following code to the JavaScript Onload Event:

3. Build your project and view generated files in the browser.

The result will be the following:

Applies to:

  • ASPRunner.NET
  • PHPRunner
  • ASPRunnerPro

Back to top