dcharmed
Posts: 3
|
Posted: 10/24/2009, 11:02 PM |
|
Hi,
I am trying to hide/show TR which consist of form input that i want it to be displayed according to type of form.
So i added a tagging to each row to identify the object to hide/show :
example : <!-- BEGIN TextBox TarikhLPPerakuLantikan -->
Unfortunately if the TR consist of date format input field with the datepicker... it cannot be hide/show properly. The datepicker did not visible/invisible correctly.
I have upgraded to the latest version of CC.
These are the codes.
HTML
<!-- BEGIN TextBox TarikhLPPerakuLantikan -->
<tr class="Controls"> <td class="th">Tarikh LPPerakuLantikan</td>
<td><label for="RPerolehanDetailsTarikhLPPerakuLantikan" style="display: none;">
</label>
<input id="RPerolehanDetailsTarikhLPPerakuLantikan" size="10" value="{TarikhLPPerakuLantikan}" name="{TarikhLPPerakuLantikan_Name}">
<!-- BEGIN DatePicker DatePicker_TarikhLPPerakuLantikan -->
<a href="javascript:showDatePicker('{Name}','{FormName}','{DateControl}');" id="RPerolehanDetailsDatePicker_TarikhLPPerakuLantikan">
<img id="RPerolehanDetailsDatePicker_TarikhLPPerakuLantikan_Image" alt="Show Date Picker" src="../Styles/srpksilver/Images/DatePicker.gif" border="0"></a>
<!-- END DatePicker DatePicker_TarikhLPPerakuLantikan --></td> </tr>
<!-- END TextBox TarikhLPPerakuLantikan -->
CODES:
if($RPerolehanDetails->StatusSemasa->GetValue() == "new") {
$RPerolehanDetails->TarikhLOA->Visible = false;
$RPerolehanDetails->TarikhLOI->Visible = false;
$RPerolehanDetails->TarikhLPPerakuLantikan->Visible = false;
}
Anyone has a solution for this?
|