Hello!
I’ve gotten a requirement and I’m not sure if this is even possible. Basically what I want to do is to be able to store/get the ”Date range” data that the user chooses from the Schedule Board inside a variable in JavaScript OnLoad.
See picture below:
Is there anyway of doing this, like using the ”getElementById” function?
I am aware that Microsoft does not want you to access the DOM. https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/use-javascript?view=op-9-1. But this is the only way where I can see the values, see below.
I’ve researched and so far I haven’t found a solution that is up to date or that is working. Furthermore, I’ve also tried using Xpath without any success.
Thanks for any help!
Hello, have you tried to use formContext on the JavaScript function?
Something like this: formContext.getAttribute("field_name").getValue();
I attach a link that contains many examples: rkcrm.wordpress.com/.../
Thanks!
Community Support Team - Esteban
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.
Daniyal Khaleel
122
DAnny3211
101
Abhilash Warrier
70
Super User 2025 Season 2