Monday, March 4, 2019

Create and Submit HTML Form Suitelet

Below is a sample of how to create a Suitelet HTML Form and handle values submited from a Suitelet HTML Form.

Guidelines and Code Breakdown:

1. Place HTML Code as a String Parameter to response.write() function.
2. HTML Code > Place form field within form tags.

Example:


3. HTML Code > Form Field name attribute, is the field identification name, which is needed retrieving values after the form is posted.

Example:



4. After form is submitted (ie. When submit button is clicked and the request.getMethod() == "POST") to retrieve the form field values us the request.getParameter(name) function. Place in the parameter the name attribute in the HTML form field (previously mention in Guideline #2).

Example:

No comments:

Post a Comment