I already have code which is given below
var input = document.getElementById("documentlink");
input.style.color = "blue";
input.style.textDecoration = "underline";
input.onclick = function () {
if (Xrm.Page.getAttribute("documentlink").getValue() != null)
window.open(Xrm.Page.getAttribute("documentlink").getValue());
}
but the problem here is I cannot use html DOM since it can become an issue in upgradation as custom code validation tool identifies textDecoration as an issue. I cannot make that text box format to URL as that gives absolute URL and I am not allowed to change the types of existing fields. If there is any method to do this then please help.
Yes, There are a lot of ways to accomplish your goal:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.