Answered by:
How to pass value from html webresource in crm 2013 entity field

Question
-
Hi,
I have a html web resource in which two textbox. I have created a Iframe in crm 2013 and add this html webresource in Iframe. I want to pass values of textboxes of html webresource into crm fields. Please tell me how is it possible by using javascript?
Monday, March 10, 2014 8:27 AM
Answers
-
The field in which you are setting the value is a string type. So you have to set only string/null value to that field.
Thanks, MS CRM Developer, Ranjan
- Marked as answer by Syed Hijazi Monday, March 10, 2014 11:29 AM
Monday, March 10, 2014 11:02 AM
All replies
-
hi,
Once Go through these links, u might got some idea
1.http://rajeevpentyala.wordpress.com/2013/03/07/passing-multiple-values-to-web-resourcehtmlsilverlight-in-crm-2011/
2.http://www.dynamicscrmpros.com/replacing-field-label-microsoft-dynamics-crm-html-web-resource/
3.https://community.dynamics.com/crm/b/mahenderpal/archive/2013/01/30/get-customer-address-in-sales-entities-using-html-web-resource.aspx
Monday, March 10, 2014 10:25 AM -
Hi,
You can directly access the Xrm from the html page to set the field value in the crm form.
window.parent.Xrm.Page.getAttribute('new_name').setValue(value);
Thanks, MS CRM Developer, Ranjan
- Proposed as answer by Linn Zaw Win Monday, March 10, 2014 10:50 AM
Monday, March 10, 2014 10:29 AM -
Error occurred :
"This control only accepts strings or null as an input"
Monday, March 10, 2014 10:57 AM -
The field in which you are setting the value is a string type. So you have to set only string/null value to that field.
Thanks, MS CRM Developer, Ranjan
- Marked as answer by Syed Hijazi Monday, March 10, 2014 11:29 AM
Monday, March 10, 2014 11:02 AM