Monday, September 17, 2018

Use an External Web Site to Send Data to NetSuite's Online Case Form

This is a guide on how to use external web page to send a POST data in NetSuite's Online Case Forms.

First part is to create the form in NetSuite.

1. Navigate to Setup > Support > Online Case Forms > New.

2. Select Default Form Template for the form type.

3. In the Select Fields tab, add all required fields.

4. Click Save.

5. View the created form and click the External tab and locate the Publishable Form URL field, it looks something like this:

6. The URL in step 5 is needed for the form's action element in an external HTML form.

Second part is to pass the value on an HTML form to NetSuite's Online Case form.

1. Open the external form in a browser (e.g.

2. View the source.

3. Look for the <input> elements and get the field name.

4. The field names are the parameters that needed to be supplied when sending this data from the external PHP/HTML form.

5. Here is a sample code:

 <form action='' method="post">




                             <td><input type="text" name="email" /></td>




                             <td><input type="text" name="title" /></td>



                             <td>First Name:</td>

                             <td><input type="text" name="firstname" /></td>



                             <td>Last Name:</td>

                             <td><input type="text" name="lastname" /></td>



                             <td>Company Name:</td>

                             <td><input type="text" name="companyname" /></td>



                             <td>Incoming Message:</td>

                             <td><input type="text" name="incomingmessage" /></td>




                             <td><input type="submit" value="submit" name="submit" /></td>



6. After submitting this form, all the input values is mapped to the case record created in NetSuite.

No comments:

Post a Comment