property presence wont work

AEM_USER1

29-06-2020

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  

Answers (0)