我已经有下面给出的代码
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());
}
但这里的问题是我不能使用 html DOM,因为它可能成为升级的问题,因为自定义代码验证工具将 textDecoration 识别为问题。我无法将该文本框格式设置为 URL,因为它提供了绝对 URL,并且我不允许更改现有字段的类型。如果有任何方法可以做到这一点,那么请帮助。