
Brian Dailey1
Kilo Sage
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-31-2022 03:24 PM
This is a quick workaround for CSM Workspace and Agent Workspace to detect when the form is dirty (i.e., field values have been changed).
According to the support document (KB0855260😞
"g_form.modified, g_form.modifiedFields, g_form.getControl('field_name').changed, g_form.getElement('field').changed APIs will not work in agent workspace."
To work around this challenge in the Workspace environment, here are a couple of options using g_form just to see if the form itself has been updated:
- g_form.isUserModified();
- g_form.$private.isDirty();
These won't tell you the individually modified fields, but they will tell you if the form has been changed and has unsaved updates.
-Brian
Labels:
- 1,118 Views