Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Force call of Submit button on suitelet form from client script
Hi Everyone,
I am seeking some help here and i am stuck for few days :h_a_w:
I am working on a Suitelet which creates a Form displaying different fields in GET method.
I have added 3 buttons:
* APPROVE calling a function checkApprove() as newForm.addButton('custpage_approveit','Approve', 'checkApprove('+salesorderID +')');
* REJECT calling a function checkReject() as newForm.addButton('custpage_rejectit', 'Reject', 'checkReject('+salesorderID +')');
* SUBMIT using newForm.addSubmitButton('Submit');
I want to verify the inputs of the user in all fields have added in the form (myform.addfield...) and alert the user of any information wrongly input, and if ok (and only if all OK) submit the form to POST