Previous Topic: Input Fields

Next Topic: Command key buttons

Examples

The following field is a 10-character input field that allows only uppercase input (specified by the U in the field name) and that initially appears on the screen with a blank value:

<INPUT TYPE=”TEXT” NAME=”_F0432U” VALUE=”” SIZE=”10” MAXLENGTH=”10”>

The following field is a 7-character input field, which allows only numeric values to be input and initially appears on the HTML page with a value of 22.35:

<INPUT TYPE=”TEXT” NAME=”_F0586N” VALUE=”22.35” SIZE=”7” MAXLENGTH=”7”>

The following field is a drop-down list having two acceptable values and that initially appears on the HTML page with a value of 'Yes' (the underlying green-screen appears with an initial value of 'Y'):

<SELECT NAME=”_F1234”>
   <OPTION SELECTED VALUE=”Y”>Yes</OPTION>
   <OPTION          VALUE=”N”>No</OPTION>
</SELECT>

When a submit button is pressed, all changed input fields (including drop-down select fields) are validated to ensure their contents conform to their field data type prior to submitting the page. If any field contains data that is inconsistent with the field data type (for instance, if you have entered character data in a field defined as being a numeric field), a pop-up error displays and the page is not submitted to the IBM i.

Once all changed fields contain acceptable data, the page is submitted to the IBM i, and all input fields are sent with their respective values.

The value attribute of input fields refers only to the value of the field when it initially displays on the HTML page.