Hierarchy Scripts


i have placed script hierarchy of form , can call it. problem need make sure textfield sricpt associated either populated or not. have tried formcalc methods , javascript cna't figure out how make sure textfield populated or not, , how call function. variable name empname, function name invest().
i trying in docready event.

in js have code
if (invname = null)
empname;
else
invname.access = "readonly";
this doesn't work,
if (invname = null)
invname.access = "readonly";
else
empname;

formcalc have tried this:
if (hasvalue(form1.#subfrom1.invname))
invname.access = "readonly";
else
form1.#subform.variables.empname.invest();

can please me figure out how make sure textfield populated or not, , how call variable associated function.

try in javascript:
if ((invname.rawvalue == "") || (invname.rawvalue == null)) {
empname.invest();
} else {
invname.access = "readonly"
} // end if

you did not state if trying pass contents of invname invest function.

good luck
mark


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments