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

Removing 1 Minute Option from Duration field in Appointment Entity

$
0
0

Hi All,

I am trying to remove 1 minute option from duration field in meeting entity.

But it seems using out of the box feature it is impossible to implement.

I have written an unsupported code which is working in Web but not working in Outlook/mobile or USD.

Below is the code. please have a look and let me know what modification in code I have to do to achieve this.

Please Note: I know the consequences of using unsupported code.

function hide1MinuteOption()

{

    debugger;

    var isCrmForMobile = (Xrm.Page.context.client.getClient() == "Mobile")

    if (!isCrmForMobile)

        {

            var row=parent.document.getElementsByClassName("ms-crm-Duration-Row")[0];

            row.style.display='none';

        }

    else

        {

            var row=parent.document.getElementById("scheduleddurationminutes_iSelect.1 minute");

            row.style.display='none';

        }

}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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