Generate, Sign, and Automate Salesforce documents with real-time sync
Build portals, apps, and forms directly in Salesforce with Dynamic data flow and adaptability
How can we help you?
When you generate documents from Salesforce, users need a quick way to start the process from the record or list they are working on. Adding an FT Document Generation button to Salesforce gives users direct access to Titan document generation without leaving the object page.
For most standard Salesforce objects, Titan automatically creates the FT buttons. If you want to use Titan document generation on a custom object, you must first create the button and add it to the Salesforce page layout.
Titan lets you add an FT Doc Gen button to a Salesforce object so users can generate documents from the correct record or list view.
Note:
Prerequisite:
1. On the Titan Forms project, make sure that you configure the Word mapping.
2. Click the Configure button under the Salesforce button.

3. Select an object and map the record ID to the Form.
Add the button to the record view in an object.




When the user clicks the button, the Document Generation modal opens with a list of the templates to which the specific user has access.
Note:
The height of the modal in this example is 780 px.
Add the button to the List View.
<apex:page
standardController="API_name"
recordSetVar="recVar"
sidebar="true"
lightningStylesheets="true">
<apex:includeLightning />
<apex:form>
<apex:pageBlock title="Generate Multiple PDF">
<apex:pageBlockButtons location="top">
<apex:commandButton value="Back" action="{!cancel}" />
</apex:pageBlockButtons>
<apex:outputText rendered="{!IF(selected = '', true, false)}">
<apex:pageMessage
severity="error"
strength="1"
summary="{!$Label.form_builder__Please_choose_at_least_1_record}" />
</apex:outputText>
</apex:pageBlock>
<div id="lightning"></div>
<script>
var recids = '{!selected}';
recids = recids.replace(']', '');
recids = recids.replace('[', '');
recids = recids.replace(/\s/g, '');
if (recids.length > 0) {
$Lightning.use("Form_Builder:FTPDF", function () {
$Lightning.createComponent(
"Form_Builder:FTGeneratePDF",
{ recids: recids },
"lightning",
function (cmp) {}
);
});
}
</script>
</apex:form>
</apex:page>
Note:
Makes sure that you use the API name of the custom object and not the name.




After you have created a new button, it will be available in the list to select. Buttons that are part of the Titan package will also be listed here.


The button is added to the List View layout.

You can now use the button on the object.

If you cannot see the button in Salesforce, use the drop-down arrow and click the FT Doc Gen option.

If you are interested, check out our Salesforce document generation article for a comparison of the 10 best tools in the market.
The Only Forms Solution Built 100% in Salesforce.