meenu - Thursday, February 7, 2013 4:00 AM:
Hi all,
I have a field on my form which is disabled at the time of load, I want to make that enable on checking a check box. But It is not getting enabled immediately on checking the checkbox, It is becoming enable on saving the form. Is there a way to enable the field immediately on checking the form and vice versa.
The code I' m using is: onFormPopulated event:
var thisItem = document.thisItem;
var new_fld = thisItem.getProperty("checkbox"); //property of check box
var field = document.fieldsTab["field"].substring(0, 32);
document.getElementById(field).disabled = true;
if(new_fld==1)
{
document.getElementById(field).disabled = false;
}
Please help me.
M.K
zahar - Thursday, February 7, 2013 4:11 AM:
if your field is item property you can use following one line code to update it:
handleItemChange("NAME_OF_THE_FIELD","VALUE_OF_THE_FIELD");
meenu - Thursday, February 7, 2013 4:26 AM:
Thank you Zahar,
My field is text field, how can I use the above line to the text field.