How to Populate a Text field with the value of a pick list onChange CRM 2011

I need to populate the "Subject" field on the Phone Call record with the value of an Option Set (PickList) named new_callSubject.

What onChange code do I need to place in the picklist field to populate the Subject field?

Thank You!
LVL 1
pcgymAsked:
Who is Participating?
 
Chinmay PatelEnterprise ArchitectCommented:
Hi pcgym,

You will write the following code
Xrm.Page.getAttribute("subject").setValue(Xrm.Page.getAttribute("new_callsubject").getSelectedOption().text);

Open in new window


Regards,
Chinmay.
0
 
pcgymAuthor Commented:
Perfect!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.