Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

problem with getField

Avatar

Former Community Member
Hello,

I'm using this method to call the signature Info and Validate methods this way:



var f = event.target.getField("form1.SignatureField1");

f.signatureValidate();



// get particular info

var Info = f.signatureInfo();



When I execute this code in a click event in a button in an example form I get this error:



f has no properties



Does anybody know why?



Thank you
1 Reply

Avatar

Former Community Member
You need to give the page object a name and then put it in the SOM expression you pass to getField. IE: if you call your page p1, you would pass in:



event.target.getField("form1[0].p1[0].SignatureField1[0]");



Chris

Adobe Enterprise Developer Support