To make my dynamic field SiteCode appear in the customer ticket creation form, I have added to CustomerTicketMessage.tt this code:
Code: Select all
<div class="Row Row_DynamicField_SiteCode">
<label id="LabelDynamicField_SiteCode" for="DynamicField_SiteCode" class="Mandatory">
<span class="Marker">*</span> Store Number:</label>
<div class="Field">
<input type="text" class="DynamicFieldText W50pc" id="DynamicField_SiteCode" name="DynamicField_SiteCode" title="Store Number" value="" />
</div>
<div class="Clear"></div>
</div>
Note: I did not add "SiteCode" to Ticket::Frontend::CustomerTicketMessage###DynamicField. In fact I plan to add some condition for this code in .tt file to be called. Most often I do not want this "SiteCode" to appear in the CustomerTicketMessage form.
Any clue to make this work?