- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Why don you keep a control info in a hidden text field?
I have modified you code a little. (see the lines in red color)
If still not working, post your form to this forum to have a look at it.
Nith
---------------------------------------------------
ServiceProcurementNotice::docReady - (JavaScript, client)
var
myDoc = event.target;
var saveFlag = true;
try
{
var userSave;
if(saveFlag)
{
userSave = xfa.host.messageBox("Do you want to save changes to " + myDoc.documentFileName,"Save",2,3);
}
if ( userSave == 3 )
{
app.execMenuItem("SaveAs");
saveFlag = false;
txtHiddenSaveFlag.rawValue = "false"; // If you want to keep this info even after closing the form
}
else
{
}
}
catch
(err){app.alert("Exception in save: "+err);}
if ( userSave == 3 )
{
app.execMenuItem("SaveAs");
saveFlag = false;
txtHiddenSaveFlag.rawValue = "false"; // If you want to keep this info even after closing the form
}
else
{
}
}
catch
(err){app.alert("Exception in save: "+err);}
if ( userSave == 3 )
{
app.execMenuItem("SaveAs");
saveFlag = false;
txtHiddenSaveFlag.rawValue = "false"; // If you want to keep this info even after closing the form
}
else
{
}
}
catch
(err){app.alert("Exception in save: "+err);}
Views
Replies
Total Likes