There are a number of ways to add a hyperlink to a form. You can create a custom field and convert that into a hyperlink. However an arguably better way is to use an IFrame since you can save on having to modify the schema by doing so.
Using an IFrame is not complicated, but one thing I struggled with a little was to give the link a nice underlined blue color as is standard for hyperlinks. Without formatting, the hyperlink will just appear as text in the form without any visual indicators that it is a hyperlink (other than when you hover over it the mouse pointer will change to a hand) as shown below:
Other than creating the IFrame as recommended in the screenshot below:
The only other requirement is to add the following somewhere in the jscript of the form onload event:
crmForm.all.IFRAME_RatePlan_d.innerHTML ="<a href='www.someurl.com' target=_blank>Rate Plan Summary</a>";
I am not sure if this is the only way to go about it (I somehow doubt it), but in order to get the nice underlined blue hue, all you have to do is add the syntax highlighted below:
crmForm.all.IFRAME_RatePlan_d.innerHTML ="<a href='www.someurl.com' style='color: #0000ff; border-bottom: 1px solid #0000ff' target=_blank>Rate Plan Summary</a>";
And then it will render like this:
Perhaps a small tweak but a big difference as far as user experience is concerned.
The intention of this blog is to focus on the business application of Microsoft CRM and its surrounding ecosystem. In doing so, whenever discussing a topic I will endeavor to avoid presenting dry facts but rather to relate it to the practical application and/or impact it might have on the business, the pros, cons, best practices etc. The correct way of thinking is paramount when confronting a business challenge and this is what I hope to bring to the table.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment