2

I am new to CRM 2011 Javascript,Can anyone please suggest me in writing the below lines in CRM 2011 Javascript to support multi browsers please.

In IE it is working fine but not in other browsers

crmForm.new_schemaname.DataValue = crmForm.all.schemaname.DataValue;

I tried to write like this

Xrm.Page.getAttribute("new_schemaname").getValue() = Xrm.Page.getAttribute("schemaname").getValue();

Throwing error saying Can't assign to a function result

1 Answer 1

1

You need to use the setValue function

Xrm.Page.getAttribute("new_weightedpercentage").setValue(Xrm.Page.getAttribute("CFPoppStage").getValue());`

You'll probably also want to check for null values before blindly assigning and reading values...

Sign up to request clarification or add additional context in comments.

1 Comment

To complement @Daryl information, check for example this article talk about the new object model.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.