Skip to main content
Solved

Open a URL from a buttonsAsync input

  • July 11, 2020
  • 1 reply
  • 20 views

Hello all,
Forgive me for what seems like a silly question, I’m new to this and can’t figure this out. I would like to launch a website when I click a button in the scripting block. Is this possible?

let purpose = await input.buttonsAsync(
'Are you Creating a Record?',
[
    {label: 'Create', value: 'creating'}
],
);
if (purpose === 'creating') {
//LAUNCH URL HERE
}

Best answer by kuovonne

Scripting block itself cannot launch a webpage. Scripting block can display a link (in markdown format) to a web page, and when the user clicks the link, the web page will open. Note that the web page will open the browser window, no in the Scripting block window.

1 reply

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • Answer
  • July 11, 2020

Scripting block itself cannot launch a webpage. Scripting block can display a link (in markdown format) to a web page, and when the user clicks the link, the web page will open. Note that the web page will open the browser window, no in the Scripting block window.