This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How can I disable date/calendar control using client/server script & a Radio Button List as well ?

Abhijit - Sunday, March 6, 2016 1:10 PM:

Hi,

I have a control of Date type say myDate. I want to disable it. If I use myDate.disabled = true; it doesn't work & I can still select a date.

I there a way to do this?

2) I have a list as well which is shown as Radio Button List which I want to disable. the .disabled also do not work with this. How to achieve this?

Thanks...

 



tstickel - Monday, March 7, 2016 2:25 PM:

What event are you using to trigger the javascript code?  I have been successful disabling form controls when they are triggered by OnFormPopulated, but that may not meet your requirements.

Which version of Innovator are you using?  What browser are you using?

Have you run a browser debugger tool to see if your disable statement is successfully executed?

Is myDate a property of an Itemtype?  If so, then something like document.getElementById("myDate").disabled = true; may not work.

In Innovator 11, using IE11, this should work if myDate is a property of an Itemtype:    getFieldByName("myDate").disabled = true;