Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect users to URL

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2022

Hi Guys,

I have a JSM request form with a custom field called Request Type & has multiple options, if the users select a specific option, a help text appears for field Request Type to redirect users to specific url & I am using scriptrunner to achieve this.

RequestType.setHelpText("Please go to portal link. <a href='https://abcdef.com/'>Link</a>")

Help text appears correct along with the link, but the problem with this approach is the link opens in the request form itself rather than opening in the new window.

Can someone please help understand what's wrong with it ?

Thanks!

 

1 answer

1 accepted

2 votes
Answer accepted
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2022

Hi @Vishal, have you tried adding the target attribute to your help text? Try this:

<a href=\"https://xxxxx.com/\" target=\"_blank\">Link</a>

 

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2022

Hi @Ivan Lima perfect, thanks a lot, that worked out like charm. :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events