RE: Print a suitelt form

Hi everyone,
I have a suitelet form created with “GET” method and in this form I using form.addButton to add “Print” button and I want to print it as PDF, please advice how can I do this solution ?

am_alyesmael Rookie Asked on December 2, 2021 in SuiteScript.
Add Comment
1 Answers

you can create a function that triggers when you click on the button. then you can passwhatever data you have in the Suitelet in an xml sting in the function and can use nlapiCreateFile() for 1,0 script or file.create() for 2.0 script to create the PDF file.

Rookie Answered on December 2, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.