CSM Workspace – How to create a modal popup with validation using UI Builder and update form fields?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi everyone,
I’m currently working on a requirement in CSM Workspace where I want to implement a custom button (UI action) using UI Builder, and I’m looking for the best approach to achieve this.
🔹 Requirement
On the Case form in CSM Workspace:
- Add a button (UI action)
- On click → open a modal popup
- The popup should contain:
- Notes field (mandatory)
- Date-Time field (mandatory)
- Submit button
- Cancel button
🔹 Validation Requirements
- Both fields must be mandatory
→ If empty, show error:
"Both fields are required" - Date-Time field validation:
- Should not allow past dates
- Only current or future date/time should be allowed
→ If invalid, show error:
"Only current or future date/time is allowed"
- The popup should NOT close if validation fails
🔹 Expected Behavior
- On clicking Submit:
- Validate inputs
- If valid → update values in the Case form fields:
- Notes → (target field on form)
- Date-Time → (target field on form)
- Close modal after successful update
- On clicking Cancel:
- Simply close the popup
🔹 What I am trying
I am trying to achieve this using UI Builder, but:
- I am not finding clear documentation or examples
- Not sure how to:
- Create and trigger a modal properly
- Handle client-side validation inside UI Builder
- Bind popup fields to form fields
- Update record data on submit
🔹 Questions
- What is the recommended approach to create such a modal in UI Builder?
- Should this be implemented using:
- Modal component + client state?
- Data resource (Glide Ajax / Scripted REST)?
- How can we:
- Perform validation before submission?
- Prevent modal from closing on validation failure?
- Update the record fields on the form after submit?
- Are there any reference implementations, documentation, or videos available for this use case?
🔹 Goal
I want a clean, workspace-native solution (no UI Pages/Jelly), fully implemented using UI Builder best practices.
Any guidance, sample implementation, or documentation would be really helpful.
Thanks in advance!
0 REPLIES 0
