Hi all
I am attempting to take the data from the subject field on the product form and use it to build a url to pass to an iframe on another tab
During my testing if I hardcoded the variable it all worked fine. However if I try and use the real data I get undefined and object(object) in my alerts i am using for debugging. have tried using both .value and Datavalue as tests. I am guessing that the actual data is not the string I am actually expecting so am wondering how to access that string from the form??
Any ideas are appreciated.
below is my code
//collecting the subjectid from the form and splitting it so we can build the url dynamically
var CRMvar=crmForm.all.subjectid.DataValue;
alert(CRMvar);
CRMvar=crmForm.all.subjectid.value;
alert(CRMvar);
var CRMproduct=CRMvar.substr(8);
alert(CRMproduct);
*This post is locked for comments
I have the same question (0)All sorted
Found that the subjectid has to be returned to an array and then there is a .name attrib to pull the string out.
Loving Google today