How do I enforce that the checkbox in a alert box is checked?


hi,

 

  creating form message appear when form file closed. went javascript > set document action > document close , inserted following script in space provided.

 

var ock = {cmsg:"i agree above statement.", binitialvalue:false, baftervalue:true};

app.alert({cmsg:"the information provided in form accurate.", nicon:3, ocheckbox:ock});

 

i enforce checkbox ticked before 'ok' button can pressed. how should modify script?

 

thank you

you can use loop:

 

var ock = {cmsg:"i agree above statement.", binitialvalue:false, baftervalue:false};

while (!ock.baftervalue) {

  app.alert({cmsg:"the information provided in form accurate.", nicon:3, ocheckbox:ock});

}



More discussions in Acrobat Reader


adobe

Comments

Popular posts from this blog

Adobe Reader DC install error 150410

Error: 100600 Update failed, updates have been disabled by your system policy

ReferenceError: Window does not have a constructor : 325