Hi,
I am having an issue with opening external url from a url-field. The problem is that Chrome opens the url in a new window but with no navigation options. The field is populated by an external system. I need to open the url in a new window or tab with the standard navigation bar.
Is there any body who have solved similar issues?
Thank you for your suggestion.
The URL looks ok after implementing the JS but now the URL is no longer clickable.
Hi Sebastian,
If you have access to add JS code, you could try the below:
function setURL() { var field = parent.document.getElementById("new_url"); var fieldURL = Xrm.Page.getAttribute("new_url").getValue(); if (fieldURL != null) { var fieldHTML = "<a href=" + fieldURL + " target='_blank'>" + fieldURL + "</a>"; field.innerHTML = fieldURL; } }
It will overwrite the original elements and replace the field with <a> tag.
You could add the function to Form > OnLoad Event and let it excute when form onload.
Regards,
Clofly
Try using the loadPanel function.
docs.microsoft.com/.../loadpanel
You could also have an iFrame in a tab thats hidden.
And then when you want to, load and display the iframe.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156