Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

property presence wont work

Avatar

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

Avatar

Correct answer by
Level 3

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

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