Microsoft CRM speak!

October 1, 2008

Reading values into the CRM form from an IFRAME

Filed under: MSCRM — niths @ 10:41 pm

Hi,

I had recently blogged on the CRM Team Blog about Passing CRM Form values to an IFrame.
This post provides a simple code snippet to do the reverse – read a value from an IFRAME into the CRM form. Let’s say the target page of the IFRAME is an HTML page containing a text field and I want to populate a field on the CRM form with the value in this text field.

My customized CRM form looks like this:

Customized CRM Form with IFRAME

Customized CRM Form with IFRAME

I want to read Sample Value which is in IFRAME_Custom and populate this value into the custom attribute Temp val on save of the CRM form. I place the following code snippet in the CRM form’s onSave event:

crmForm.all.new_tempval.DataValue = crmForm.all.IFRAME_custom.contentWindow.document.all.inputval1.value;

Replace with your field names, Save, Publish and that’s it!

HTH,
Nithya

4 Comments »

  1. cialis kaufen panel

    Comment by Tolisoowl — February 13, 2009 @ 10:00 am

  2. Занимательно, жду следующего поста!

    Comment by Джумана — May 21, 2009 @ 8:23 pm

  3. Other public service programs like neighborhood baby clinics were systematically denied any funding. ,

    Comment by Settor97 — October 22, 2009 @ 1:41 am

  4. Shell gets a premium for it. ,

    Comment by Miss27 — October 23, 2009 @ 12:22 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.