Skip to main content
Known Participant
March 6, 2018
Answered

message box with yes no

  • March 6, 2018
  • 1 reply
  • 6160 views

I have a checkbox, when you click it a message appears. Asks you a question, if you click yes, mesage goes away and checkbox is checked. If you click no, the message goes away and box is not checked.

I found this, I just need to conditional Yes No?

I use Acrobat XI

https://acrobatusers.com/forum/forms-livecycle-designer/message-box-forms-using-checkbox/

This topic has been closed for replies.
Correct answer try67

Use this code as the field's MouseUp event:

event.target.checkThisBox(0, app.alert("Check this box?",2,2)==4);

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 6, 2018

Use this code as the field's MouseUp event:

event.target.checkThisBox(0, app.alert("Check this box?",2,2)==4);

murrjamesAuthor
Known Participant
March 6, 2018

your the best.

murrjamesAuthor
Known Participant
March 6, 2018

Hi, on the formatting, I used a /n for a return, to put space before the question. Actually used 2 before 'Do you have an additional sheet. works good

I also want 2 returns after 'Section # 2: Conditions for cultivation' but the /n /n shows up on the message? and does not give a return?

event.target.checkThisBox(0, app.alert("Section # 2: Conditions for cultivation /n /n Mark with a cross if additional information is given on an attached sheet. \n \n Do you have an additional sheet?",2,2)==4);