Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Possible to create a Message Box in response to end-user selecting "cancel" or "block" after clicking a link to a URL?

Avatar

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Brian3_14
Level 2

06-04-2015

Hi all:

When an end-user clicks a link/button to connect to a URL, the security dialog automatically appears giving them the options of "Allow," "Block" or "Cancel".  Should they select "Block" or "Cancel," can we trigger a message box informing them they blocked or cancelled the connection?

With traditional message boxes, we're causing them, ie

var rtnFromBox = xfa.host.messageBox("Information is missing.\n\n Are you sure you want to continue?", "Missing Information",1,2);

if (rtnFromBox == 4){

    xfa.host.messageBox("Okay, we'll keep going.","",1,0);

    }

But with the URL security dialog, we're not calling it from a variable - it just happens.

I guess a similar question could be applied to a "Save" button.  Where if the end-user selects "cancel" on the "Save As" dialog, a warning could pop-up reminding them to save soon.

Thoughts?  Thanks!

Brian

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

06-04-2015

I don't see a way to do this as the security dialogs are not executed by the JavaScript-API and do not return any values you could use.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Brian3_14
Level 2

06-04-2015

Radz,

I didn't think so but figured I'd ask.  Thanks for the response though!

Best,

Brian