Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Unable to disable a date field CRM 2011.

$
0
0

I've been trying to disable a date field on one of my forms using javascript.

I tried the following lines of code to try disabling the field

Xrm.Page.getControl('datefield').setDisabled(true);

Xrm.Page.ui.controls.get('datefield').setDisabled(true);


I've tried each of this with no success.

I'm still able to clear existing dates and set new ones after this code has run.

Is there another way to disable date fields?

Thanks

James F.


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>