Skip to main content
carringtonw10078337
Participant
January 23, 2017
Answered

Document Will Save Question

  • January 23, 2017
  • 1 reply
  • 404 views

I have Document Will save question. I'm just trying run this script that will prompt an app. alert if the a text box is visible, let me know what I'm doing wrong here, I'm new to adobe forms, so thanks for any help.

var a = this.getField("Text11");

if (Text11 == display.visible)

    app.alert({CMsg:"remove all text", oCheckbox:true});

This topic has been closed for replies.
Correct answer try67

You defined a variable but you're not using it... Change the second line to this:

if (a.display == display.visible)

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 23, 2017

You defined a variable but you're not using it... Change the second line to this:

if (a.display == display.visible)

carringtonw10078337
Participant
January 27, 2017

Thanks for the help