Expose Hidden Template Fields (Text/Integer)
Modify Staff Portal templates to expose hidden fields that are linked to text or integer fields in the database.
Modifying the Account template to expose misc01 will be described.
- Edit /usr/local/billmax/uatemplates/account.tmp
- Locate the HTML element <fieldset> where the misc01 field will be displayed on the Account page.
- In the fieldset, add the appropriate HTML elements <li> and <label>.
- Move the element '<input type="hidden" name="misc01" value="##Fmisc01#"/>' after the <label>.
- Change 'type="hidden"' to 'type="text"'.
- Save the file
<input type="hidden" name="misc01" value="##Fmisc01#"/>
becomes
<li>
<label for="accountMisc01">Address Line</label>
<input id="accountMisc01" type="text" name="misc01" value="##Fmisc01#"/>
</li>