The CreatorCon Call for Content is officially open! Get started here.

Pop up with yes/no action

Sam Ogden
Tera Guru

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.

1 ACCEPTED SOLUTION

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


View solution in original post

12 REPLIES 12

That seems to have worked.   Cheers for all your help.


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


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.