Thursday, April 11, 2019

Make a Field Wider by Modifying Advanced PDF/HTML Templates

There is a default column span or column width on Standard Advanced PDF/HTML Template. Users can customize the standard template to make a field wider.

1. Navigate to Customization > Forms > Advanced PDF/HTML Templates.
2. Click Customize on any standard template that you want to update. E.g. Standard Sales Order PDF/HTML Template
3. Provide a template name on the Name field.
4. Click the Source button to convert the view to HTML Form.
5. To change the column span for Bill To and Ship To address boxes, for example, change the default colspan from 3 to a higher number.

Before the change:
<tbody>
        <tr>
        <td class="addressheader" colspan="3"><b>${record.billaddress@label}</b></td>
        <td class="addressheader" colspan="3"><b>${record.shipaddress@label}</b></td>
        <td class="totalboxtop" colspan="5"><b>${record.total@label?upper_case}</b></td>
        </tr>
        <tr>
        <td class="address" colspan="3">${record.billaddress}</td>
        <td class="address" colspan="3">${record.shipaddress}</td>
        <td align="right" class="totalboxmid" colspan="5">${record.total}</td>
        </tr>
</tbody>

After the change:
<tbody>
        <tr>
        <td class="addressheader" colspan="5"><b>${record.billaddress@label}</b></td>
        <td class="addressheader" colspan="5"><b>${record.shipaddress@label}</b></td>
        <td class="totalboxtop" colspan="5"><b>${record.total@label?upper_case}</b></td>
        </tr>
        <tr>
        <td class="address" colspan="5">${record.billaddress}</td>
        <td class="address" colspan="5">${record.shipaddress}</td>
        <td align="right" class="totalboxmid" colspan="5">${record.total}</td>
        </tr>
</tbody>

6. Click Save.

1 comment:

  1. While you can now play free Power Rangers game online, not every can excel with it.
    The Internet is filled with games which might be created keeping
    boys in mind. There is some extent of chance that is also involved when playing this game.

    ReplyDelete