Link in new tab

2
Hi, I have created a link button to trigger the nanoflow. In nanoflow I have used open URL activity. I have to open the link in new tab but it is opening in same tab. Please suggest the idea.  
asked
4 answers
4

Hi @lavnya we can write a very small java script code

steps:

1.create a new java script action in ur nano flow 

2.add a string param url in that

3.

on the code tab user the param uwl and open the link in new tab like this

 

 

    // BEGIN USER CODE

    window.open(url,'_blank');

    // END USER CODE

answered
2

Hi Lavanya,

https://marketplace.mendix.com/link/component/119753

You can try this marketplace widget.

 

Thanks

answered
1

You can take a copy of the OpenURL nanoflow action from the NanoflowCommons module and move it into one of your own. In the copy of the action go to the Code tab and edit the underlying JavaScript as follows.

Scroll down to the comment marked “// Web platform” and change the line

window.location.href = url;

to

window.open(url, "_blank");

This will only work for the web browsers. If you want to also target the native and hybrid platforms you’ll need to edit those sections as well.

Hope this helps.​​​​​​

answered
0

Hi Lavanya
You can use URL Redirector widget.

answered