?
Solved

Changing defaults for time fields in CRM

Posted on 2014-02-09
3
Medium Priority
?
848 Views
Last Modified: 2014-02-18
Hello, I am starting to create a CRM package.  Can anyone tell me how can I change the default setting for the time field in a form?  If I setup a time field in the form for appointments the default sets to 12:30am.  How can I change it so it starts at 8:30

Regards
Warren
0
Comment
Question by:Ozwazza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 2000 total points
ID: 39846491
Hi,

You mean for all appointments the default time selected would be 8.30, correct?

var d = new Date();
var date = new Date(d.getFullYear(), d.getMonth(), d.getDate(), 8, 30, 0, 0);
Xrm.Page.getAttribute(<"appointmentStartAttribute">).setValue(date);

Open in new window


Replace Appointment Start Attribute name with <"appointmentStartAttribute"> in above code.
0
 

Author Comment

by:Ozwazza
ID: 39854975
Cool, how do you get to the source code for that particular field?
0
 
LVL 19

Expert Comment

by:Rikin Shah
ID: 39855175
Hi,

You can go to design mode from customization for this entity and check the logical name of the field.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question