We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Onclick client validation on Service Operation Wrokspace UI Action

dipesh11020
Tera Contributor

fix_button_native_ui.pngdeclarative_ui_action.pngHi Everyone,

I am working on the Problem Fix action in Service Operations Workspace (SOW) and have run into a limitation.

In Native UI, the Fix UI Action contains an OnClick client-side validation that runs before the action is executed. The validation checks whether the Problem can be fixed and displays an alert message to the user if the condition is not met.

In SOW, however, the Fix action is implemented as an OOB Declarative Action rather than the native UI Action. From what I can see, Declarative Actions do not provide an equivalent OnClick client-side script where I can implement the same validation logic before execution.

My Questions

What is the recommended way to implement client-side validations for Declarative Actions in SOW?
Is there an equivalent of the Native UI Action OnClick script available in Workspace?
Has anyone implemented a pre-execution validation that can stop a Declarative Action from running and display a message to the user?
Are Client Conditions the only option, or is there another supported approach?

In my specific case, the native UI Action prevents the Problem from being fixed when certain Problem Task conditions are not satisfied. I am looking for a way to achieve the same behavior in SOW while following supported best practices.

Any suggestions would be greatly appreciated.

 

0 REPLIES 0