Status: Open
Status: Answered
Status: Closed
Status: Duplicate

V9 Disabling the calendar on a datetime field

Posted Jan 25 by David Thomas.

I'm using


to disable datetime fields but the calendar does not become disabled.  The user can still click on the calendar but the date they select does not populate the field.  The problem is it usually throws an error or the calendar never closes. I know in 7.6 you had to get the DIV tag then go through the child nodes of the DIV and set it to disabled.  This doesn't seem to work in 9.  Does anyone know how to disable the calendar as well as the field? 



5 Answers

BEST ANSWER: As chosen by the author.

I'm afraid it does not help, but this does clearly show why such hacks will cause more pain than gain IMO.

BEST ANSWER: As chosen by the author.

It seems that something simple such as:





running client side does not work either. The background changes but it is still selectable.


Is there anyway to dynamically disable fields in v9?



BEST ANSWER: As chosen by the author.

Ok, figured out a couple.


to turn off a text box i used the following :



for a radio group i was able to do this


rdoArray = new Array();

rdoArray[0] = "rdoGroup_Editor_Option 1"

rdoArray[1] = "rdoGroup_Editor_Option 2"

rdoArray[2] = "rdoGroup_Editor_Option 3"


Where rdoGroup is the ID of the control and Option 1, 2, 3 are the values. "Editor" is added to the id to create the complete control id


then you can loop through and say


for (i=0;i<rdoArray.length;i++)








BEST ANSWER: As chosen by the author.

To disable a date control i did the following:


//* disable the textbox portion



//* disable the button

//* _Editor_popupButton needs to be added. Metastorm creates an anchor tag with this id


D.disabled= true;


Probably a better way to do this, but this is what I got to work

BEST ANSWER: As chosen by the author.

I know that this is not the main topic kf discusion, but I think calendar icon should not be displayed if field is read only at all. What do you think about this "feature"?

 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.


Related categories

Your answer

To leave an answer, please sign in.