In a dynamic CRM portal, I want to jump into the record from the Calendar view of the entity.
PFA image for reference -
Can anyone help me with this? All the suggestions would be appreciated.
Thank you
*This post is locked for comments
In a dynamic CRM portal, I want to jump into the record from the Calendar view of the entity.
PFA image for reference -
Can anyone help me with this? All the suggestions would be appreciated.
Thank you
*This post is locked for comments
Add that code to the Custom JavaScript attribute of the Entity Form, or of the language-specific Localized Web Page that the Entity Form sits on, and update this line of code:
window.location = '?id=' + $(this).data('event-id');
to something like:
window.location = '/url-of-your-event-details-page/?id=' + $(this).data('event-id');
Nick
Hi Nick,
I'm trying to implement your solution above, can you explain in a bit more detail how you implement it, please?
Hi Jalak,
Something like the following should work:
$(document).ready(function() {
$('.entitylist').on('mouseup', '.event-info', function() {
window.location = '?id=' + $(this).data('event-id');
});
});
You'll need to update the URL that the window.location is set to to point at your event details page, but otherwise that should do it.
All we're doing is attaching a mouse-up event on the 'event-info' class for any descendant elements in our entity list calendar. That element contains a data attribute which contains the ID of the event. Note that I'm using mouse up instead of click because I believe the calendar code stops the propagation of the client event, so it doesn't work the first time you click it.
Nick
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,403
Most Valuable Professional
nmaenpaa
101,156