I tried to disable a text field by using the following code. I am able to disable the field, but the field is still allowing to enter data in disable mode also.
The code I used is:
var curr_state = thisItem.getProperty("state"); var correction = getFieldByName("correction"); if(curr_state=="New")
var correction_Style = correction.style; correction.disabled = true; correction_Style.visibility = "visible"; correction_Style.display = "";
correction.disabled = false;
Is there any mistakes in the above code?
Thank you all,
Retrieving data ...