I have added a new freetext field to my Change forms and it appears in the Change Edit screen as expected. However, it is an <input> field and I would like it to be a <textarea> field formatted in the same way as the Change Justification field. So, to achieve this I have used the following code in AgentITSMChangeEdit.dtl:
Code: Select all
<label class="Mandatory" for="RichText3"><span class="Marker">*</span> $Text{"Implementation Plan"}<input type="hidden" value="Implementation Plan" name="ChangeFreeKey1">:</label>
<div class="RichTextField">
<textarea id="RichText3" class="RichText" name="ChangeFreeTextField1" rows="15" cols="$Config{"Ticket::Frontend::TextAreaNote"}">$Data{"ChangeFreeText1"}</textarea>
<div id="RichText3Error" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
<div id="RichText3ServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
</div>
<div class="Clear"></div>
Can anyone explain what I am doing wrong please?
Thank you.
Dan