how to add Hyperlink in the Sp portal

devservicenow k
Tera Contributor

My Requirement is in SP portals

In ServiceCatalog-->can you help me--> create a New Enhancemet.

there I need to Add link  , which should redirect to the KB Article,

how to do this?

1 ACCEPTED SOLUTION

More than likely it's how the link was constructed and where it's pointing to.

Remember the url is going to be different if the user is in the "back_end" or the Platform UI than it is if they are viewing from the Portal side.

backend_link.gif

 

If you need it to work in both environments then the simple solution is to create two variables with the order the same. Use a UI Policy or an onload Client Script to hide the one that shouldn't show depending upon the point of access.

View solution in original post

11 REPLIES 11

Create another variable for the Catalog item or Record Producer which ever one you're using.

Make the type Rich Text Label.

In the rich text editor click on the hyperlink icon.

Populate the url field with the link to the article.

Populate the Display Text field with the text you want the link to display as.

Click "Save" on the popup

Give the variable an order that is right after the short description

Click "Save" on for the variable.

 

New Variable:


New_Variable_form.png

 

Hyperlink popup
hyperlink_popup.png

 

End result

link_catalog_var.gif

how to do this same process for backend?

because the rich text is not working in backend

What does "not working in backend" mean in this context?
Does it mean that the link doesn't show?

Does it mean nothing happens when the link is clicked?

Or does it mean when clicking the link an error occurs?

More than likely it's how the link was constructed and where it's pointing to.

Remember the url is going to be different if the user is in the "back_end" or the Platform UI than it is if they are viewing from the Portal side.

backend_link.gif

 

If you need it to work in both environments then the simple solution is to create two variables with the order the same. Use a UI Policy or an onload Client Script to hide the one that shouldn't show depending upon the point of access.

On the Backend On clicking the Richtext , i Receiving an Error " you are either not authorized or the cart item is invalid"