IBM Support

Removing message "Are you sure you want to navigate away from this page" when a form is within a iFrame

Troubleshooting


Problem

When a form is housed within an iFrame, users are receiving the message "Are you sure you want to navigate away from this page" when forms are signed using IBM Forms Server.

Diagnosing The Problem

Users see the following error:


Resolving The Problem

There are two ways to remove the message from occurring...

1) You can set the dirtyflag to 'off' and then users won't see the message when they close the form. An example is shown below using a button.

<button sid="BUTTON1">

<itemlocation>

<x>287</x>

<y>50</y>

<width>173</width>

<height>22</height>

</itemlocation>

<value>SET DIRTY FLAG to OFF</value>

<custom:setDirtyFlag xfdl:compute="toggle(activated, 'off', 'on') == '1' ? set('global.global.dirtyflag', off')) :''"></custom:setDirtyFlag>

<type>link</type>

<url></url>

</button>

2) If you never want to show the 'Are you sure you want to navigate away' message, there is a property that can be added to the translator.properties file. Details are shown below.

ignoreDirtyFlagOnUnload

***********************************

Description Disables dirtyFlag check when unloading a form in a Web

browser.

Valid values are: none, all, portal.

Default none

Set value to all

***********************************

[{"Product":{"code":"SS4BP3","label":"Lotus Forms Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"},{"code":"PF002","label":"AIX"}],"Version":"4.0;3.5.1.2;3.5.1.1","Edition":"","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
15 November 2019

UID

swg21474798