Answers.Body: <p>You can't just copy it to the on-line message.  You will need to start with the current on-line message and customise it in the same way that you did the off-line one.  Those are awkward templates to work with but if you just make small changes you should be ok.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-19T13:14:07.970Z
Answers.Text: We tried also to start from the default "on-line" message. https://civicrm.stackexchange.com/questions/28507/smarty-does-not-display-database-fields. The problem here is we cannot display the database values "source" and "paidBy" as we did easily on the "off-line" message. The "on-line" message start from a query result, the "off-line" from a webform.
Answers.UserDisplayName: MarkDQ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-19T15:46:32.127Z
Answers.Text: If you don't have all the variables you want, you can use the api from within the template to get them.  See eg https://civicrm.stackexchange.com/a/8997/225
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-18T11:14:53.637Z
Answers.LastActivityDate: 2019-02-18T11:14:53.637Z
Answers.UserDisplayName: Aidan
Body: <p>Using the action "Confirmation receipt - print or email" in a list of contributions, the message sent to the donateur seems to be "Contributions - Receipt (on-line)".</p>
  
  <p>When adding manually a contribution and checking the "Automatically send a confirmation?" button, the workflow message is "Contributions - Receipt (off-line)".</p>
  
  <p>We personalized the "off-line" message. How to copy this to the "on-line" message? Simply copy and paste does not give a good result. Other form/database values are used.</p>
  
Tags: <civicontribute><system-workflow-messages>
Title: Personalize workflow message "Contributions - Receipt (on-line)"
ThreadText: # Personalize workflow message "Contributions - Receipt (on-line)"
  
  (Asked by: username_0 on 2019-02-15)
  
  Using the action "Confirmation receipt - print or email" in a list of contributions, the message sent to the donateur seems to be "Contributions - Receipt (on-line)".
  
  When adding manually a contribution and checking the "Automatically send a confirmation?" button, the workflow message is "Contributions - Receipt (off-line)".
  
  We personalized the "off-line" message. How to copy this to the "on-line" message? Simply copy and paste does not give a good result. Other form/database values are used.
  
  **Tags:** civicontribute, system-workflow-messages
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-18. Score: 1
  
  You can't just copy it to the on-line message. You will need to start with the current on-line message and customise it in the same way that you did the off-line one. Those are awkward templates to work with but if you just make small changes you should be ok.
  
  > **Comments:**
  > **username_0**: We tried also to start from the default "on-line" message. https://civicrm.stackexchange.com/questions/28507/smarty-does-not-display-database-fields. The problem here is we cannot display the database values "source" and "paidBy" as we did easily on the "off-line" message. The "on-line" message start from a query result, the "off-line" from a webform.  
  > **username_1**: If you don't have all the variables you want, you can use the api from within the template to get them.  See eg https://civicrm.stackexchange.com/a/8997/225  
  
  ---
  
  