From 238c837efac1845fb79579ba1d06d6400f0a0eb4 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Wed, 27 Apr 2022 15:38:18 -0400 Subject: [PATCH] Make links to sign a petition easily accessible on the form. --- templates/CRM/Campaign/Form/Petition.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/CRM/Campaign/Form/Petition.tpl b/templates/CRM/Campaign/Form/Petition.tpl index 8b60e03238..431e4cbe05 100644 --- a/templates/CRM/Campaign/Form/Petition.tpl +++ b/templates/CRM/Campaign/Form/Petition.tpl @@ -100,6 +100,18 @@
{ts}Is this the default petition?{/ts}
+ + + + {if $surveyId} + {ts}Public{/ts}:
{$config->userFrameworkBaseURL}civicrm/petition/sign?sid={$surveyId}&reset=1

+ {ts}CiviMail{/ts}:
{$config->userFrameworkBaseURL}civicrm/petition/sign?sid={$surveyId}&reset=1&{contact.checksum}&cid={contact.contact_id}

+
{ts}Copy and paste the public link anywhere on the Internet, including social media. The CiviMail link should only be copied into a CiviMail message. It will pre-populate the profile with existing information for the person who receives the email.{/ts}
+ {else} +
{ts}The links will be visible after you save the petition.{/ts}
+ {/if} + + {include file="CRM/common/customDataBlock.tpl"} {/if} -- 2.25.1