Link to home
Start Free TrialLog in
Avatar of varesources
varesourcesFlag for Afghanistan

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.
{ 
var AccountURL = crmForm.all.new_cllink.DataValue; 
if (AccountURL != null) 
{ 
crmForm.all.IFRAME_CLAccount.src = AccountURL; 
} 
}

Open in new window

Untitled-1.jpg
Avatar of Feridun Kadir
Feridun Kadir
Flag of United Kingdom of Great Britain and Northern Ireland image

I've looked at your code for some time. I can't see anything wrong with it.

Do you have any other CRM add-ins installed?
Avatar of varesources

ASKER

c360 productivity pack
ASKER CERTIFIED SOLUTION
Avatar of Feridun Kadir
Feridun Kadir
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.DataValue;
if (AccountURL != null)
{
document.all.IFRAME_CLAccount.src = AccountURL;
}
}
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)
feridun

That worked! Thanks!