Cancel button expose Joget application instead of showing in iframe

Confluence User - 06 Jan, 2022

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 .

iframe;button;forms

1


06 Jan, 2022
confluenceUser
confluenceUser

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".

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print