Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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