varesources
asked on
MS CRM OnLoad error
I have the following code in the OnLoad event. It is supposed to populate an Iframe from a hyperlink that is in another field called new_cllink.
Attached is the error.
Attached is the error.
{
var AccountURL = crmForm.all.new_cllink.DataValue;
if (AccountURL != null)
{
crmForm.all.IFRAME_CLAccount.src = AccountURL;
}
}
Untitled-1.jpg
ASKER
c360 productivity pack
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. I'll try that tomorrow.
I think your code is slightly incorrect, also make sure that the new_cllink field is set to be Type: nvarchar and Format: URL.
New code below:
{
var AccountURL = crmForm.all.new_cllink.Dat aValue;
if (AccountURL != null)
{
document.all.IFRAME_CLAcco unt.src = AccountURL;
}
}
New code below:
{
var AccountURL = crmForm.all.new_cllink.Dat
if (AccountURL != null)
{
document.all.IFRAME_CLAcco
}
}
Just re-read feridun's posts, I didn't take into account the c360 stuff so if my code doesn't help then ignore me ;o)
ASKER
feridun
That worked! Thanks!
That worked! Thanks!
Do you have any other CRM add-ins installed?