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

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!