Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Display A Prompt Message

Avatar

Former Community Member
Hi ,



I would like to know the java script code for displaying a message box with an OK and a Cancel Button in Adobe LiveCycle Designer ver 8.



Thanks
1 Reply

Avatar

Former Community Member
Add the following javascript:



var msgValue =app.alert({

cMsg: " Type in your question here",

nIcon: 1,

nType:1,

cTitle: "Message Box"

});

if (msgValue == 1)

app.alert("You clicked ok");



else



app.alert("You clicked cancel");



/****

nIcon , nType can be changed accordingly for different icons (warning, info etc..) & nType can be changed for Yes/No and other options:

****/