From edeacea8ea03c940e297aa183da23308bcc1e6c4 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Wed, 14 Jan 2026 16:57:10 +0100 Subject: [PATCH] feat: update signature placeholder in preview to provide user-friendly message --- controller/documentTemplate/DocumentTemplateController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/documentTemplate/DocumentTemplateController.js b/controller/documentTemplate/DocumentTemplateController.js index efb38ac..db7a056 100644 --- a/controller/documentTemplate/DocumentTemplateController.js +++ b/controller/documentTemplate/DocumentTemplateController.js @@ -1587,8 +1587,8 @@ exports.previewLatestForMe = async (req, res) => { html = html.replace(new RegExp(`{{\s*${k}\s*}}`, 'g'), String(v ?? '')); }); - // Strip signature placeholder in preview (not signed yet) - html = html.replace(/{{\s*signatureImage\s*}}/g, ''); + // Show a friendly placeholder for signature in preview (not signed yet) + html = html.replace(/{{\s*signatureImage\s*}}/g, 'Your signature will appear here'); // Remove any remaining placeholders except stamp/signature markers html = sanitizePlaceholders(html, ['companyStamp','companyStampInline','companyStampSmall','profitplanetSignature']);