Open link in another tab on button click
7974
Views
32
Comments
On our RadarOn our Radar
Frontend (App Interfaces)

Hello OutSystems,

Currently on order to open link in another tab, we are giving extended property to the link as "target = _blank" but this doesn't work for buttons.

If we want to open link in another tab on button click, we need to style link to look like button.

So it would be nice to have this extended property "target = _blank" is working same for buttons.

These are the complaints due to this issue 

https://www.outsystems.com/forums/discussion/18000/link-is-not-opening-in-new-tab/

https://www.outsystems.com/forums/discussion/11285/how-to-open-an-external-url-in-a-new-tab/

Thanks and Regards,

Suraj Borade

Add a Boolean property to links to configure if open in a new window.



Merged from '[Link] Open in a new window' (idea created on 2017-03-16 10:58:42 by Nelson Inácio), on 2017-10-26 08:42:04 by Kilian Hekhuis

Is it implemented in current version of Outsystems ? 

if yes I need this for my project.



Merged from '[Link] Open in a new window' (idea created on 2017-03-16 10:58:42 by Nelson Inácio), on 2017-10-26 08:42:04 by Kilian Hekhuis

I would love to be able to open up a destination in a new tab without having to create an intense workaround of building the correct url adding it to a link with target = blank and placing a widget click or something on that.



Merged from 'Ability to open a Destination in a new tab' (idea created on 2017-10-24 07:46:30 by Claring), on 2017-10-26 08:42:20 by Kilian Hekhuis
2016-04-21 20-09-55
J.
 
MVP

Hi,

I am not sure if it's an advantage to implement it in service studio, because it should not be used often?

(because multiple tabs and 1 session has got it's own very annoying issues)

 




Merged from 'Ability to open a Destination in a new tab' (idea created on 2017-10-24 07:46:30 by Claring), on 2017-10-26 08:42:20 by Kilian Hekhuis

Agree with J completely. This is not something that should be happening often enough to justify making it a property.

J.Ja



Merged from 'Ability to open a Destination in a new tab' (idea created on 2017-10-24 07:46:30 by Claring), on 2017-10-26 08:42:20 by Kilian Hekhuis

I totally disagree with J. and Justin. This would be a useful property as I am trying to implement something, right now, where the user selects an item in a list and it opens a detail page, in another tab. I then control the tab to be closed when they exit the detail page. This would keep with the notion of low code and not make the developer have to be a javascript expert to figure this out, as noted by the originator of this thread, Claring. Please consider adding this property to the Destination widget. 

Thanks, Mark



Merged from 'Ability to open a Destination in a new tab' (idea created on 2017-10-24 07:46:30 by Claring), on 2017-10-26 08:42:20 by Kilian Hekhuis

Same here, we have many destinations with a 'target="_blank"'. And no offence Justin, but whether or not that should be happening often depends very much on the system. Our users have multiple monitors, and when working on the detail screen they want to open a second tab with more information to put on their 2nd monitor. Happens pretty often in our case.



Merged from 'Ability to open a Destination in a new tab' (idea created on 2017-10-24 07:46:30 by Claring), on 2017-10-26 08:42:20 by Kilian Hekhuis

Kilian -

No offense taken, but opening new tabs is a UI *worst practice*. It may be applicable to *your* use care, or Mark's, but it's still a *worst practice* on the whole.The tools shouldn't be making that easier. This is a classic example of a couple corner cases, but OutSystems doesn't encourage worst practices to make a few corner cases marginally easier, especially if it will be adding a parameter to something that people use constantly.

J.Ja

In our system it is often required to have 2 (or more) pages opened simultaneously, or else the user has to keep switching back and forth, which frustrates them quite a bit.

That sounds like a design failure, not a requirement.

Not trying to be argumentative folks, but opening new tabs has horrific usability. I am sorry that some of you have been stuck with awful requirements or have designers that cannot figure out a better way to design your screens/workflow/applications. But I don't think the product needs to add a feature to support requirements like this. Opening new tabs should be an exceptionally rare circumstance in a properly designed Web application, and the OutSystems product is clearly not interested in edge cases.

J.Ja

|ndeed this might not be the place to argue about this, Justin, but trust me that in our specific use-case it makes sense :).

Yes, that's my point, there are a could of use cases where it makes sense, but on the whole, those use cases do not justify a product change. OutSystems doesn't design for the 20%, it designs for the 80%.

J.Ja

Funnily enough, there's several places on the Forum, Forge and Ideas sections where new tabs open :)

Merged this idea with '[Link] Open in a new window' (created on 2017-03-16 10:58:42 by Nelson Inácio)
2016-04-21 20-09-55
J.
 
MVP
Merged this idea with 'Option to link' (created on 2018-03-21 11:53:41 by gyndaniel)

Option to link (open in a new window or tab). In the navigate method you already have an option in the target list and also the options of _blank, _self, etc.



Merged from 'Option to link' (idea created on 2018-03-21 11:53:41 by gyndaniel), on 2018-04-18 09:04:52 by J.
Changed the category to
Frontend


Merged from 'Option to link' (idea created on 2018-03-21 11:53:41 by gyndaniel), on 2018-04-18 09:04:52 by J.
2016-04-21 20-09-55
J.
 
MVP
Merged this idea with 'Automatic target on links' (created on 17 Sep 2018 16:14:58 by João Rafael Capucha)

Hello all,


It would be great to have in links some default list for targets like

  • None
  • Blank
  • _Blank
  • etc


This would prevent having to insert in extended properties and also have errors typing the extended property.


Thank you,


Kind Regards



This comment was:
- originally posted on idea 'Automatic target on links' (created on 17 Sep 2018 by João Rafael Capucha)
- merged to idea 'Open link in another tab on button click' on 18 Sep 2018 06:13:03 by J.

Hi Capucha,


I agree with your idea, but at least, it would already be very time-saving if there was a "Yes/No" option called "Open in new browser tab" on links with the method set to Navigate.


Cheers!



This comment was:
- originally posted on idea 'Automatic target on links' (created on 17 Sep 2018 by João Rafael Capucha)
- merged to idea 'Open link in another tab on button click' on 18 Sep 2018 06:13:03 by J.
Merged this idea with 'Link opening in a new page/tab' (created on 02 Mar 2020 13:48:01 by Joana Contente)

It would be great if Outsystems itself had the option to add to a link an option to open a new page instead of having to go to extensibility configurations and setting that up, i.e, similiar behaviour as the html target behaviour.



This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

This!

When we set a destination of a Navigate action, an extra built-in parameter 'Open In New Page' : Yes/No would be a simple but great addition.



This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

I meant extended properties not configurations, sorry  =)



This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James
2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James
Merged this idea with 'Add 'Open in new tab' options for Links out of the box' (created on 09 Dec 2020 12:52:49 by Bogdan Boglea)

This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

Hello,


Instead of having to put target="_blank" for each link that has a destination behind it, wouldn't it be nicer to have this option in Service Studio?


Regards,

Bogdan



This comment was:
- originally posted on idea 'Add 'Open in new tab' options for Links out of the box' (created on 09 Dec 2020 by Bogdan Boglea)
- merged to idea 'Link opening in a new page/tab' on 10 Dec 2020 06:05:52 by Daniël Kuhlmann


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James
Merged this idea with 'External URL with new tab' (created on 06 Nov 2020 06:53:13 by Samiksha Manekar)

This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

While using External URL and destination screen on same Server action or Screen action, It is very difficult to give target="_blank" or JavaScript to open new tab .


For example:

It would be great if we have option like :

External URL with new tab.




This comment was:
- originally posted on idea 'External URL with new tab' (created on 06 Nov 2020 by Samiksha Manekar)
- merged to idea 'Link opening in a new page/tab' on 10 Dec 2020 06:06:21 by Daniël Kuhlmann


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

Good idea. 

Whenever I need to open a new tab, I end up creating a link with target = "_ blank", and simulate clicking on that link. Certainly, having a direct action option would be better.



This comment was:
- originally posted on idea 'External URL with new tab' (created on 06 Nov 2020 by Samiksha Manekar)
- merged to idea 'Link opening in a new page/tab' on 10 Dec 2020 06:06:21 by Daniël Kuhlmann


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

Hi Samiksha,

I just added an example of how to do this in Forge. But I still think the idea is very good.


https://www.outsystems.com/forge/component-overview/9748/opennewtab



This comment was:
- originally posted on idea 'External URL with new tab' (created on 06 Nov 2020 by Samiksha Manekar)
- merged to idea 'Link opening in a new page/tab' on 10 Dec 2020 06:06:21 by Daniël Kuhlmann


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James

Hi Eduardo,

Thanks for component.

It is working as per expectation.



This comment was:
- originally posted on idea 'External URL with new tab' (created on 06 Nov 2020 by Samiksha Manekar)
- merged to idea 'Link opening in a new page/tab' on 10 Dec 2020 06:06:21 by Daniël Kuhlmann


This comment was:
- originally posted on idea 'Link opening in a new page/tab' (created on 02 Mar 2020 by Joana Contente)
- merged to idea 'Open link in another tab on button click' on 10 Dec 2020 15:44:48 by Justin James