Action trigger close modal before open

What I am trying to do:
I want make email template configuration so inside each template got 3 actions which is Preview, Send Test and Publish.

  1. Preview will render the html directly via action modal content,
  2. Send Testwill execute an action to send the email with the current template that user editing with
  3. publishaction that save the template to the database
What I did:
I've made the actions succefully like what i want it able to preview, send the test email and save the template,

I render the action by looping and given unique name to identify the action for which template

My issue/the error:
the actions only work for the first loop the second and etc wont work or even not execute the process code
image.png
Was this page helpful?