How to set input readonly dynamically

Hi,

I have loaded UI using xml file. I have set my input box readonly based on logic using the code myForm.setReadOnly(“textboxname”,true); but, this way I see JS error “Object doesnt support this method or property”. Can you please help me solving this error.

-Nityajs

Unfortunately the issue cannot be reconstructed localy.

Please make sure that you are using dhtmlxForm 3.0.
Also check this tutorial: http://docs.dhtmlx.com/doku.php?id=dhtmlxform:api_method_dhtmlxform_setreadonly

If issue still occurs for you please provide any kind of sample or demolink to reconstruct an issue

If that line in your post is directly from your page I’d look at your function name. The tutorial calls “.setReadonly();” and your post uses “.setReadOnly()”;