I have a text field which is populated by date selected from calendar widget.User should select date only from calendar widget.For this the text box should be a readonly field , which I am unable to do.
I am pasting the code for date field and also the code for ipl file I used in it
The DTD I am using for metadata is "metadatacapture6.0.dtd" and teamsite version is 6.5
To overcome browser interpretation I used @ in place of < and >
code for date field is
@label@Publish Date@/label@
@description@ Please enter content publication date
@/description@ @item@code in ipl file is
$output="
@substitution@\n";
$output.="
@readonly/@\n";
$output.="
@text required = \"t\" size=\"15\" maxlength=\"10\"
@\n";
$output.="
@default@";
$output.=$theTime;
$output.="
@/default@\n";
$output.="
@cgi-callout url=\"/iw-bin/er_calendar_callout.ipl\" label=\"Show Calendar...\" window-features=\"width=200,height=230,resizable=no,toolbar=no,scrollbars=no,titlebar=no\" /
@\n";
$output.="
@/text@\n";
$output.="
@/substitution@\n";
print $output;
I tried including
@readonly/@ above
@text@ element in ipl file ,but the entire text box dissappeared.