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.

Get the LABEL/CAPTION of a field of the form?

Avatar

Level 8

Hello

I am trying to get the TextField1's CAPTION/LABEL/DESCRIPTION (what text user sees on the form, say 'Account #') with the below code but its not working, pls. let me know the syntax to get it

var a;

var b

if (xfa.resolveNode("("VISITOR.PAGE1.Subform1.TextField1").rawValue == null) {
a = xfa.resolveNode("VISITOR.PAGE1.Subform1.TextField1").name;

b = xfa.resolveNode("VISITOR.PAGE1.Subform1.TextField1").id;

{
app.alert( b + " is a required field")
}

}

Thank you

0 Replies