Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

customization in alert box

Avatar

Level 2

Hi

   I am new to lc form designing.I need a ALERTBOX which has print option.I mean i want to change the default "YES","NO" option in alertbox.

   Help me ASAP.

   If possible send a sample pdf.

   Thanks a lot

1 Reply

Avatar

Former Community Member

Off your print button - JavaScript on the click event - Then customize the text as desired.

var

nButton = xfa.host.messageBox("You must SAVE the form prior to removing pages to have this function work properly.\n\n Did you save the form?", "DID YOU SAVE?", 2, 2);

if (nButton == 4) // Hitting the Yes button returns 4

{

form1.page1.instanceManager.removeInstance(form1.page1.instanceManager.count-1); // proceed with delete

}

Eve