Hi All,
In Adobe Forms, when we are using custom dialog box, a JavaScript Warning appears. Is it possible to remove the "Warning: Javascript Window" from a
custom pop up in form designed in Livecycle?
Regards,
Leena Jain
Views
Replies
Total Likes
See this thread.
Hi Radzmar,
I tried using the following as per the thread,but it is not working for my form.Not sure where I am going wrong,It will be great if I could get a sample form which implements this.
var MyDialog = app.trustedFunction(function(doc, Msg, Icon, Type, Title)
{
app.beginPriv();
app.alert({ cMsg: Msg, nIcon: Icon, nType: Type, cTitle: Title});
app.endPriv();
});
...which can be called from a buttons click event.
Form1.#subform[0].Button1::click - (JavaScript, client)
var Msg = "Hello, \r\rthis is a test.";
var Icon = "3"; //0 — Error (default) // 1 — Warning // 2 — Question // 3 — Status
var Type = "0"; //0 — OK (default) // 1 — OK, Cancel // 2 — Yes, No // 3 — Yes, No, Cancel
var Title = "Information for User";
event.target.MyDialog(event.target, Msg, Icon, Type, Title);
Thanks and Regards,
Leena Jain
Views
Replies
Total Likes
Hi,
this script has to be put into a folder level script (a js file, which is saved into the javascripts folder of Acrobat/Reader).
When you copied the folder level script into the javascripts folder, you have to restart the App.
var MyDialog = app.trustedFunction(function(doc, Msg, Icon, Type, Title)
{
app.beginPriv();
app.alert({ cMsg: Msg, nIcon: Icon, nType: Type, cTitle: Title});
app.endPriv();
});
The other script is for a buttons click:Event in your form.
var Msg = "Hello, \r\rthis is a test.";
var Icon = "3"; //0 — Error (default) // 1 — Warning // 2 — Question // 3 — Status
var Type = "0"; //0 — OK (default) // 1 — OK, Cancel // 2 — Yes, No // 3 — Yes, No, Cancel
var Title = "Information for User";
event.target.MyDialog(event.target, Msg, Icon, Type, Title);
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies