g_modal to open a view? UXF Client Action that has validation before opening the form view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 05:20 AM
Hello Everyone,
I have a question whether this is possible:
So, part of the requirement is trying to replicate every customization in the Problem from applied in CoreUI and migrating it to Service Operations Workspace, which also includes custom buttons
One of these said custom buttons has a function where it performs GlideAjax validation whether if all the problem tasks are completed or not. If not, an error message appears. If all are completed, calls a script loader to open another specific view of the Problem.
Now Script Loaders do not work in Service Operations Workspace, so it must be translated.
I have reached to 2 approaches here:
One is using UXF Client Action which handles the Form Viewing the best but there is no validation performed.
Another is creating a g_modal which is less elegant, but has the validation.
If I were to go with the UXF Route, how can I let the payload have client-callable Script Include validation?
And if I go to g_modal route, how can I add HTML Fields in the g_modal popup?
Thanks,
Gello