Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

property presence wont work

AEM_USER1
Level 3
Level 3

is there any reason why the presence wont work?

 

form1.Page1.Sec1Fields.ddlTopic::change - (JavaScript, client)

var newSelection = xfa.event.newText;
  if(newSelection == "Other"){
    xfa.host.messageBox("visible");
    Page1.Sec1Fields.txtOtherTopic.presence = "visible"; 
  } else {
    xfa.host.messageBox("hidden");
    Page1.Sec1Fields.txtOtherTopic.presence = "hidden"; 
  }
}

i have that piece of code and i will get the message but the field will not hide. please help @workflowuser  

1 Accepted Solution
AEM_USER1
Correct answer by
Level 3
Level 3

this has been solved, the form needed to be saved as Dynamic 🙄

View solution in original post

2 Replies
AEM_USER1
Correct answer by
Level 3
Level 3

this has been solved, the form needed to be saved as Dynamic 🙄

View solution in original post