Getting Contract Details on Contract Line Form

I just came across scenario where we wanted to know contract details on Contract Line form and to my surprise you can not added contract look up on contract line form in CRM. Check it out you will be surprised too 🙂

Well after using IE Developer tool I found that there is hidden field which holds the contract GUID on this contract line form.

So you can use following line to get contract GUID on contract line form.

alert (crmForm.all.contractid.DataValue);

Hope this helps some one as well…

Cheers,
MayankP

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s