function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sarah SSarah S 

How to save a custom visualforce/LWC form as pdf when user Save the form and attach to notes and attachment section of the object.

requirement - generate Sales Order form and attach as pdf in note and attachment of Order Object.

solution approach - a button on order details page 'Generate Sales Order Form' on clicking this button VF or LWC will launch with some order details and user can hit save on this form. On Save how to save this vf/lwc as pdf and attach in notes and attachment of order object.