1
0
-1

Joget application is displayed inside an iframe.  When cancel button in approval form is clicked, It change url of parent application and expose joget web-application.

Noticed button is using top.location in generated code. 

<button id="cancel" onclick="top.location='/jw/web/userview/usermg/v/_/D89734C6B4AF';return false">Cancel</button>

As a quick fix, Have removed Cancel button using script.

Do we have any solution where button can be kept in form, also prevent application from navigating away from iframe .

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, instead of just removing the button, you could try modifying your script to change the value of the onclick attribute to change the "top" to "window".

        CommentAdd your comment...