web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Call timer control in Javascript

(1) ShareShare
ReportReport
Posted on by 120

Hello Guys,

I have a scenario to access QuickView form and get the value from the timer control which is present in the quick view form.

I tried with the below code and it is not working. Please give your suggestion on this.

var quickviewControl = formContext.ui.quickForms.get("quickview_name");  

if (quickviewControl != undefined)
   {
     
     if(quickviewControl.isLoaded())
     {
      
      var myValue = quickviewControl.getControl("timercontrol_name").getAttribute().getValue();// not working in this line
     
      return;
     }
          
     
   }
Thanks,
Vasanth
I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Vasanthkumar,

    I found two menthods as following shown, maybe you can try to use them to test:

    1.updateTimeDifferenceInSeconds() function

    Xrm.Page.getControl("mytimer").updateTimeDifferenceInSeconds();

    Getting the current value of the timer | Dreaming in CRM & Power Platform

    2.getelementById

    document.getElementById('mytimer').children[0].children[1].innerText

    (+) Access timer control value - Dynamics 365 Customer Service Forum Community Forum

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans