Expand my Community achievements bar.

SOLVED

Need help with simple if form not saved display message.

Avatar

Level 2

Hello,

I am assembling a complex script but i am going to start with the first logice statement.

Basically to start i need to know how you write a script that uses the logic if the form is NOT saved then display message you need to save the form first.

Thats it for this part! Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

you can do this in this way.

Acrobat/Reader uses the so called Dirty Flag to state if there have been made any changes to the form.

var dFlag = event.target.dirty

if (dFlag == true)

{

xfa.host.messageBox("Form was not saved yet");

}

else
{
code to execute otherwise...
}

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

you can do this in this way.

Acrobat/Reader uses the so called Dirty Flag to state if there have been made any changes to the form.

var dFlag = event.target.dirty

if (dFlag == true)

{

xfa.host.messageBox("Form was not saved yet");

}

else
{
code to execute otherwise...
}