Custom UI action not working on FSM workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 02:24 AM
I created a custom UI action: requested raised and configured in both workspace and native UI. but the custom ui action is not working either on workspace/native UI.
issue: even after clicking OOB 'save' or 'update' action on workspace, the server side of custom UI action runs every time whenever there is any updates made to the form.
expected: custom UI action should work both on client side and server side only when it is clicked.
UI action: 'Request raised'
client : true
server(insert/update) - true
script:
function poincrease() {
var ans = confirm("Do you want to move ahead?");
if (ans == false)
return false;
else
gsftSubmit(null, g_form.getFormElement(), "req_raise");
}
if (typeof window == 'undefined')
runBusRuleCode();
function runBusRuleCode() {
current.u_status = 'req expedite required';
current.update();
action.setRedirectURL(current);
}
workspace client script:
workspace client script:
function onClick(g_form) {
var ans = confirm("Do you want to move ahead?");
if (ans == false) {
return false;
} else {
// Trigger the UI action's server-side logic.
g_form.submit('req_raise'); // matching the UI action name
}
}
please help to resolve this issue as i am unable to fix this issue.
please help to resolve this issue as i am unable to fix this issue.
Thanks,
Abhishek