UI action Button to create Workorder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi everyone,
I have a usecase where I need button to create work order. I see we have context menu to create work order, can I make changes to it directly and make it button and make customization on it where when I click that button I get message onclick with yes or no.
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi @Irfan53
Instead of directly making changes to OOTB provided, its always recommended to make a copy and work on it. So go to OOTB create work order UI action, insert and stay and make this copy UI action as active and check button option. Check button and uncheck form context menu option
If you want message on-click of button, select client check box and write script for on-click() function similar like this. and on server side implement your work order logic or copy from OOTB UI action:
In my example case my function is confirmAndRun() so:
If you find this answer useful, please mark it as solution accepted/helpful.
Regards,
Mohammed Zakir