`var form = nlapiCreateForm('Submission Form'); ...
# suitescript
v
Copy code
var form = nlapiCreateForm('Submission Form');
        form.addField('field_one', 'text', 'Field 1');
        form.addField('field_two', 'text', 'Field 2');
        form.addField('field_three', 'text', 'Field 3');
        form.addField('field_four', 'text', 'Field 4');
        form.addSubmitButton('Submit');
        response.writePage(form);
This is basically my form in a suitelet. The results I'm sending using the submit button is used to handle some information in the post request. In the post request I'm using the info to create a record and it is there where I'm using setfieldvalue to set the Custom Inventory part form to use