How to removed the option To Be Emailed
# ask-stanley-ai
m
How to removed the option To Be Emailed
c
AI generated answer (using internal Slack threads):
To remove the option 'To Be Emailed' when generating a quote in NetSuite, you can modify the custom form used for the quote. The options to email a quote are typically found in the communication tab, the 'Save and Email' button, and the 'Email' option in the 'Actions' on record view. All these options can be removed from a custom form. If you want to prevent the email from being sent until the transaction is approved, you can use a status criteria in the advanced PDF template. This will result in an error when you try to print an unapproved PO, and the email will fail to be sent if the template has an error in it. Here is a sample code snippet:
Copy code
html
<body header="nlheader" header-height="6%" footer="nlfooter" footer-height="75pt" padding="0.5in 0.5in 0.5in 0.5in" size="A4">

<#if record.orderstatus = "A" || record.orderstatus = "C"  >
  </body>
  </pdf>
<#else>

<!-- Your template content goes here -->

</#if>
</body>
</pdf>
In this code, the email will only be sent if the order status is either 'A' or 'C'. If the order status is anything else, the template will have an error and the email will not be sent. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829759836
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823432267
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816559434
Please provide your feedback on this answer.