Use a Gutenburg Input Field when a value needs to come from Salesforce Flow rather than directly from a record field. The key requirement is that the variable name in Flow and the Input Field name in the Gutenburg template match.
1. Create the variable in Flow
In Salesforce Flow, create the variable that will hold the value you want to pass into the document-generation process.
Assign the value in the Flow before the Gutenburg generation step runs. The value can be determined by the Flow’s logic, user input, or other Flow resources.
2. Create the matching Input Field in Gutenburg
In the Gutenburg template:
- Create a Data Field.
- Set its type to Input Field.
- Give the Input Field the same name as the Flow variable.
The matching name is what connects the Flow-provided value to the template field.
3. Insert the Input Field into the template
Place the Input Field wherever the Flow value should appear in the generated PDF.
When the document is generated, Gutenburg uses the value supplied by the Flow for the matching Input Field.
Example pattern
If the Flow variable is named myCustomInput, create a Gutenburg Input Field named myCustomInput and insert it into the template where that value belongs.
Important naming rule
Keep the Flow variable name and Gutenburg Input Field name identical. If the names do not match, the intended value will not map to that Input Field.
