That would create a clickable link, rather than a ...
# suitescript
s
That would create a clickable link, rather than a button. But you could easily use Inline HTML to create a button that opens the same url
k
Hi @scottvonduhn, I am creating the Cash Sale through the suitelet ( based on user submission ) , and once it's created I am returning a new form with the cash sale number ( link to cash sale ). I want that once my suitelet sends the response, the default Cash Sale PDF is opened in a new tab.
s
okay, that's different then. I assumed it was for a button on the cash sale form. do you actually want a button, or do you just want the PDF to automatically open in a new tab?
k
If possible, it should open automatically. If not, then a button should be able to do it.
s
you should be able to add a function in an attached client script that calls
window.open(url)
with the URL in my first post
then just call that function from your suitescript
If for some reason that doesn't work, then create a button whose onclick action calls the function in that attached client script instead.
k
sounds good....I will try that...thanks a lot!
s
sure. good luck!