- Loading lookup field text into another form field
- Posted by Steve on February 20th, 2007
I am using an 'onchange' event against a lookup field to populate another
form field using
crmForm.all.nswit_schoolname.DataValue =
crmForm.all.nswit_schoolsemployedid.SelectedText
but cannot seem to make it work. Tried it on a form save event as well.
Simple but ??? The reason for this is that I am attempting to update an
attribute in a parent entity with the latest value in a linked entity using
workflow.
- Posted by Niths on February 21st, 2007
Hi,
Try this:
crmForm.all.nswit_schoolname.value=crmForm.all.nsw it_schoolsemployedid.nextSibling.InnerText;
HTH,
Niths
"Steve" wrote:
- Posted by Steve on February 21st, 2007
Thanks
When testing it returns
There was an error with this fields customised event
Field: nswit_schoolsemployedid
Event: onchange
Eror: Object required
after I select a lookup record
"Niths" wrote:
- Posted by Manish on February 21st, 2007
Hi Steve
Try putting this code in "Oncahange" of Lookup field...
crmForm.all.nswit_schoolname.DataValue=crmForm.all .nswit_schoolsemployedid.DataValue[0].name;
--
Thanks...
Manish Dixit
"Steve" wrote:
- Posted by Steve on February 21st, 2007
Thanks Manish......that works fine
thanks to Niths as well as I may use that elsewhere after checking the SDK
"Manish" wrote: