- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2017 07:30 AM
Hi,
On our catalog tasks there is a 'close task' UI Action. When this is selected we require that a popup box appears with the message:
'Are you sure you want to complete this task?'
with a yes/no option.
If yes selected the UI action continues to run.
If no UI Action does not run and returns you to the task.
I believe that the script in the 'close task' UI action can be modified to achieve this, I'm just not sure on what script I need to use?
Any help is greatly appreciated.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2017 08:46 AM
I can see you have an additional braces at the end of the code '}' (line 17). Can you move it above the if condition which will correctly close the function closeTask().
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2017 08:52 AM
That seems to have worked. Cheers for all your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2017 09:16 AM
For the code that worked, Please check if it closes task when you click on Cancel?
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2017 02:43 AM
Thanks for this. I had ran a test that the cancel button does not cancel the task as expected. It just closes the pop up message and returns me to the task form as expected. Once again thanks for your help.