This topic is locked

Datepicker issue

3/13/2009 7:37:08 PM
PHPRunner General questions
M
michaelmac author

Hey Everyone
I use the date picker for my date fields in my apps with no problems till now. I have a date field named birthDay that on Add and advanced search it works fine. On an edit page I use
<script>

document.forms.editform.value_birthDay.disable=true;

</SCRIPT>
to disable the field. No problem except that the datepicker icon shows up on the edit page. I just want to remove or have the attribute for the variable $birthDay calendar being visible, make it invisible, but only for that page.
Thanks in advance
Mike
PS anyone know where I can see the manual on how to use the new PHPR 5.1 ?

J
Jane 3/16/2009

Hi,
unfortunately there is no easy way to hide datapicker manually.
As workaround create alias in the SQL query on the Edit SQL query tab:

select field1,

field1 as field1_edit,

...

from TableName



Then check off field1_edit on the edit page only on the Choose fields tab and set up it as readonly on the"Edit as" settings dialog on the Visual Editor tab.