How to add a date field on the popup form in HR Agent Workspace using g_modal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Requirement - IN HR Agent Workspace, When someone attempts to change the state of HR case to suspend a popup form should appear asking for reason and a due date in HR Agent Workspace.
I am using a client script to display the popup form using g_modal but when i mention the type of due date field as date/glide_date the field disappears from the form.
Does g_modal supports date field type?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
date type is not supported
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @BalakrishnaMule ,
I don't think g_modal supports Date field.
However, we can achieve this using Declarative Actions in multiple ways:
Using a Form View: If the Reason and Date fields are part of the HR Case form, create a new view containing these two fields. Then, create a Declarative Action to open this view from the workspace, similar to the Resolve button on an Incident in Service Operations Workspace.
Using UI Interactions: If the instance is on the Australia release or later, we can use UI Interactions and trigger them through Declarative Actions.
Using Events: Create a Declarative Action to trigger an event and define the required process on the Record Page of HR Agent Workspace, as explained in the Community post below.
Leveraging Declarative Actions for Popups
Please note that the third approach requires customization of the Record Page.
If you need any further assistance, please let me know.
If this helps, please mark the response as helpful and accept it as the solution.
Regards,
Harish