Afternoon
I have a dropdown list that has an entry which when selected shows a table. What I want to do is have the table disappear when that particular entry is deleted or changed. The scripting below is present to show the table but I'm not sure how to script so the tables hides when the entry is changed.
//+ Type: Action
//+ Result1: SetPresence("$Node2","visible")
//+ Node2: form1[0].TextFieldContainer[0].#subform[11]
//+ Node1: form1[0].TextFieldContainer[0].#subform[9].#area[1].Table1[0].Row1[0].DropDownList5[0]
//+ Condition1: ListField("$Node1","textselected","Custom entry")
//+ ActionName: DropDownList5.change
if ($.boundItem(xfa.event.newText) == "Custom entry") {
this.resolveNode("TextFieldContainer.#subform[11]").presence = "visible";
I'd appreciate any info.
Ben
Views
Replies
Total Likes
Hi Ben,
I think you just need an else on your if statement, maybe
if ($.boundItem(xfa.event.newText) == "Custom entry") {
this.resolveNode("TextFieldContainer.#subform[11]").presence = "visible";
}
else
{
this.resolveNode("TextFieldContainer.#subform[11]").presence = "invisible";
}
Regards
Bruce
Views
Replies
Total Likes