Cancel Change without filling mandatory fields in SOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 05:21 AM
I already have made a script which works fine but doesn't work in "Service Operation Workspace"
I know I should click the "Workspace Form Button" and then write a script there but I have tried but it still keeps trying to force me put all the mandatory information before canceling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 07:58 AM
Hi ElSalmitto , have you set your client script UI type to "All" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 01:43 AM
I am still struggling with it. I have an Ui action button but this script doesnt work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 04:21 PM - edited 06-04-2024 10:04 PM
Hi @ElSalmiito ,
Write a UI policy: that runs on Change table when state is Cancelled with the following code to check all the editable variables and make them non mandatory:
Add this code in starting to set the state to Cancel:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 09:40 PM
Hi @ElSalmiito ,
I see you are not using debugging features. Isolate each line of code and as a practice return a paremeter that your function is successful. A Void method is not recommended. Establish validation on entry and return of your functions. It will help you and other developers understand the behaviour of your code.
Please mark as helpful and accept as solution if you find it lucrative.