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.

What am missing in this code, its not working!!

Avatar

Level 8

Hello

I know the field name in myVISITORinfoForm, say, the name is myTextField25, but i do not know its complete path!! but, i want make it grey and readOnly, so i put the below code (i put the cursor on the node of 'myVISITORinfoForm' and selected the DocReady event)

var c = xfa.resolveNode("myTextField5").fillColor = "192,192,192";
var d = xfa.resolveNode("myTextField26").fillColor = "192,192,192";
var e = xfa.resolveNode("myTextField25").access = "readOnly";
var f = xfa.resolveNode("myTextField26").access = "readOnly";

I also tried for another field of myTextField26, i also kept the same code in the events of FormReady, Initialization....but, did not worked!!

myTextField25 and myTextField26 are positioned on the 3rd page in the SubForm of mySubForm12.

Pls. let me know wht am missing?

Thank you

0 Replies