After creating a document template, the name attribute of the linked Submitter objects remains nil. This results in email templates resolving the {{ submitter.name }} template variable to the recipients e-mail address (fallback value).
The Submission object contains an attribute named template_submitters, which holds the configured submitter names. The following code snippet returns the name assigned to the submitter on template creation.
Description
After creating a document template, the
name
attribute of the linkedSubmitter
objects remainsnil
. This results in email templates resolving the{{ submitter.name }}
template variable to the recipients e-mail address (fallback value).https://github.com/docusealco/docuseal/blob/a249b0a6789dd9da3ece23dc05027301bb7e6410/lib/replace_email_variables.rb#L30
Possible Solution
The
Submission
object contains an attribute namedtemplate_submitters
, which holds the configured submitter names. The following code snippet returns the name assigned to the submitter on template creation.