Setting up Custom Input Forms
Custom input forms provide another way of creating, editing, and viewing documents. You can continue to use Classic Edition The view of the application that you see when you first install the base managed package. or Extended Edition The view of the application that you see when you install one of the extension packages (such as the Cash Entry Extension package). For invoices, credit notes, and journals Extended Edition is integrated into the main package, but must be configured. if you prefer, but the custom input forms display header, detail and summary information on one page and better support "tab out" for moving from one field to another. Custom input forms are also easy to modify for your own business needs, such as removing fields that are not relevant.
Default custom input forms are provided for the six document types: Sales Invoice, Sales Credit Note, Payable Invoice, Payable Credit Note, Journal, and Cash Entry. When you have enabled custom input forms in your org, you can start using the default forms or customize them to suit your business needs by creating your own forms.
To enable custom input forms, you need to override the New, Edit and View buttons on the custom objects for the six document types:
- From Setup, click Create | Objects.
- Select the custom object for the relevant document type: Sales Invoice, Sales Credit Note, Payable Invoice, Payable Credit Note, Journal, or Cash Entry.
- Click Buttons, Links, and Actions.
- Click Edit next to the New button.
- In the Override With section, select the Visualforce Page radio button then select "Custom Form - <Document Type> - New/Edit" from the drop-down list. (The table below contains the full name of each custom page.)
- Click Save.
- Repeat steps 4-6 for the Edit button so that both the New and Edit buttons use the "Custom Form - <Document Type> - New/Edit" page.
- Now click Edit next to the View button.
- In the Override With section, select the Visualforce Page radio button then select "Custom Form - <Document Type> - View" from the drop-down list.
Although a "Custom Form - <Document Type> - Amend" custom page is available, do not assign it to any button. Read the "Amend" section below for more information. - Click Save.
Repeat these steps for each document type in turn.
The following table lists the full names of the New/Edit and View custom pages for each document type.
Document Type | New/Edit | View |
---|---|---|
Sales Invoice | Custom Form - Sales Invoice - New/Edit [c2g__cfsalesinvoiceedit] | Custom Form - Sales Invoice - View [c2g__cfsalesinvoiceview] |
Sales Credit Note | Custom Form - Sales Credit Note - New/Edit [c2g__cfsalescreditnoteedit] | Custom Form - Sales Credit Note - View [c2g__cfsalescreditnoteview] |
Payable Invoice | Custom Form - Payable Invoice - New/Edit [c2g__cfpurchaseinvoiceedit] | Custom Form - Payable Invoice - View [c2g__cfpurchaseinvoiceview] |
Payable Credit Note | Custom Form - Payable Credit Note - New/Edit [c2g__cfpurchasecreditnoteedit] | Custom Form - Payable Credit Note - View [c2g__cfpurchasecreditnoteview] |
Journal | Custom Form - Journal - New/Edit [c2g__cfjournaledit] | Custom Form - Journal - View [c2g__cfjournalview] |
Cash Entry | Custom Form - Cash Entry - New/Edit [c2g__cfcashentryedit] | Custom Form - Cash Entry - View [c2g__cfcashentryview] |
When you have overridden the New, Edit, and View buttons for a document type to use these custom pages, the default custom input forms take effect. Any applicable related lists are enabled on the default custom input forms for viewing documents. Use the Input Form Manager if you want to create your own custom input forms. You can create separate custom input forms to input and view documents, or you can create one custom input form for both input and view. You can assign different custom input forms to different companies. For example, you might want to create different custom input forms for entering sales invoices in companies with different tax regimes.
Amend
When you assign custom pages to the New, Edit, and View buttons for a document type you might notice that there is also a custom page for "Custom Form - <Document Type> - Amend". You do not need to assign this page to a button. Provided that you assign the "Custom Form - <Document Type> - View" page to the document type's View button, when a user views a document then clicks the Amend button the document will be loaded using the Amend custom page. The Amend custom page is fixed; you cannot modify it by applying custom input forms.
Adding Action Buttons
To add a custom action button to your custom input form:
- From Setup, click Create | Objects.
- Select the appropriate document type object from the list, for example Sales Invoice.
- Scroll down to the Page Layouts section and click Edit next to the relevant page layout.
- Drag the custom button on to the page layout.
- Click Save.
- Repeat for any other document type objects.