the javascript code is not working.


hi ,

  tried disable text field using following code. able disable field, field  still allowing enter data in disable mode also.

the code used is:

var curr_state = thisitem.getproperty("state");
  var correction = getfieldbyname("correction");
if(curr_state=="new")

{

  if(correction)
{

var correction_style = correction.style;
   correction.disabled = true;
   correction_style.visibility = "visible";
   correction_style.display = "";

}

else{

correction.disabled = false;

}

}

is there  mistakes in above code?

need help.

thank all,

harsha



More discussions in LiveCycle Forms


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support