Tuesday, December 1, 2009

How to access frame level attribute(fields) from CRM form?

Suppose we have used the iFrame in CRM form to access outside pages or even CRM pages, and we need to access any field of the form in iFrame to populate the crm values in that field or to get the field value etc.

Suppose the iFrame used is "IFRAME_Name" and the field in the form of IFRAME is "testField".
The following can get the object from thr form of IFRAME

var objTestField = crmForm.all.IFRAME_Name.contentWindow.document.getElementById("testField");

39 comments:

  1. 以簡單的行為愉悅他人的心靈,勝過千人低頭禱告........................................

    ReplyDelete
  2. 當一個人內心能容納兩樣相互衝突的東西,這個人便開始變得有價值了。............................................................

    ReplyDelete
  3. 與人相處不妨多用眼睛說話,多用嘴巴思考. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    ReplyDelete