Answers.Body: <p>The state token is a token and not a smarty variable, so it has to just be on its own, and you can't use it in the middle of a smarty <code>if</code> statement. You have to <code>capture</code> it first into a smarty variable:</p>
  <pre><code>{capture assign=stateProv}{contact.state_province}{/capture}
  {if $stateProv eq 'FL'}
   &lt;p&gt;A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE.&lt;/p&gt;
  {/if}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-11T15:41:48.573Z
Answers.Text: THANKS SO MUCH!
Answers.UserDisplayName: Iowa Boy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-11T12:08:59.260Z
Answers.LastActivityDate: 2020-07-11T12:08:59.260Z
Answers.UserDisplayName: Demerit
Body: <p>The state of Florida, USA requires a special statement on contribution acknowledgements &amp; receipts. I am trying to edit the online and offline workflow template so that it will include that statement if the contact.state_province is FL. Can someone please help me get the code dialed in?</p>
  <p>Thanks in advance</p>
  <pre><code>{if $contact.state_province eq 'FL'}
   &lt;p&gt;A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE.&lt;/p&gt;
  {/if}
  </code></pre>
  <p>I tried it without the $ first. So... {if contact.state_province eq 'FL'}</p>
  <p>I tried the code below but it put it on all receipts</p>
  <pre><code> {assign var=&quot;florida&quot; value=&quot;{contact.state_province eq 'FL'}{if $florida}&lt;p&gt;A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE OF FLORIDA. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE OF FLORIDA.&lt;/p&gt;
  {/if}
  </code></pre>
  
Tags: <civicontribute><message-templates><system-workflow-messages>
Title: Receipts for FL donors
ThreadText: # Receipts for FL donors
  
  (Asked by: username_0 on 2020-07-11)
  
  The state of Florida, USA requires a special statement on contribution acknowledgements & receipts. I am trying to edit the online and offline workflow template so that it will include that statement if the contact.state_province is FL. Can someone please help me get the code dialed in?
  Thanks in advance
  {if $contact.state_province eq 'FL'}
   A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE.
  {/if}
  
  I tried it without the $ first. So... {if contact.state_province eq 'FL'}
  I tried the code below but it put it on all receipts
   {assign var="florida" value="{contact.state_province eq 'FL'}{if $florida}A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE OF FLORIDA. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE OF FLORIDA.
  {/if}
  
  **Tags:** civicontribute, message-templates, system-workflow-messages
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-11. Score: 3 | Accepted answer
  
  The state token is a token and not a smarty variable, so it has to just be on its own, and you can't use it in the middle of a smarty if statement. You have to capture it first into a smarty variable:
  {capture assign=stateProv}{contact.state_province}{/capture}
  {if $stateProv eq 'FL'}
   A COPY OF THE OFFICIAL REGISTRATION AND FINANCIAL INFORMATION MAY BE OBTAINED FROM THE DIVISION OF CONSUMER SERVICES BY CALLING TOLL-FREE (800-435-7352) WITHIN THE STATE. REGISTRATION DOES NOT IMPLY ENDORSEMENT, APPROVAL, OR RECOMMENDATION BY THE STATE.
  {/if}
  
  > **Comments:**
  > **username_0**: THANKS SO MUCH!  
  
  ---
  
  