Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: RE: Appointment change default value for "Show Time as"?

$
0
0

The Field "Show Time As" is the "statuscode" field.
If you want to change the default when you create an appointment you need to add the following code in your onload event:

var formType = Xrm.Page.ui.getFormType();
if (formType == 1) {
  Xrm.Page.getAttribute("statuscode").setValue(1);


note:
the status code for Free is 1, you can find more here

http://msdn.microsoft.com/en-us/library/gg309665.aspx


Viewing all articles
Browse latest Browse all 123975

Trending Articles



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