Avatar

Level 4

About the Show/Hide of the email button. I've done some searching and tried out about six different scripts, none of which work. The last one looks like this

----- topmostSubform.Page1.MRN::change: - (JavaScript, client) -------------------------------------

var email_button = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Button1[0]").presence;
var boxes_MRN = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].MRN[0]").rawValue;

if (boxes_MRN == null){
email_button = "Invisible";
}else {email_button = "Visible";
}

I must be close. Can you spot the trouble?

Also, since I've done a lot of searching, can you mention a few resources that helped you learn XFA javascript? I used just the Adobe forums.

Thank you again!