+ Start a Discussion

Using the date/account/opportunity/... pickers in s-controls?

This was posted in the PHP forum, so I'm not sure you guys saw it:


Basically, I can get the pickers to launch but get an error when I try to choose a value.

Anyway, if you have any ideas on this one, please let me know.

Hi Zach,

Make sure that the field=    in the link is matching the id of the field supposed to contain your date

Here is my sample:
<input class='issue' name='ioscd' id='ioscd' size='8' tabindex='7' type='text' value='" + serCloseDate + "'>&nbsp;
<a href=\"javascript:openPopupFocus('/home/calendar.jsp—form=editPage&field=ioscd&mo=0', '_blank', 193, 148, 'width=193,height=148,resizable=yes,toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,dependant=yes', true, true);\" tabindex=\"7\" onclick=\"setLastMousePosition(event)\"><img src=\"/img/date_picker.gif\" alt=\"Pick A Date\" title=\"Pick A Date\" border=\"0\" height=\"16\" width=\"24\"></a>

Note that that was in the docuemnt.write = so it explains the escape characters for the "


Message Edited by The_Fox on 06-08-2006 04:00 PM

Vijay RautVijay Raut
Hi Zach,

I am also using the same date picker code.

But it is giving error in Firefox as Documnet.getElementByID(Form) has no properties.

But same thing is working in IE.

So please suggest me the solution for same.

Thanks In Advance.