Editing the work flow messages, I'm looking for the field names preceded by $formValues.
More specific I would like to include a line displaying the origin of the contribution in the work flow message "Contributions - Receipt (off-line)".
Where to find all the field names that can be used?


Without knowing on what form you are exactly, there is bound to be something like contributionId or contributionID in your form.

You can find the name in the $form object (try debugging the object for the specific name) and then use $contributionId = $form->getVar('_contributionID') to get the field and use it in your hook (assuming you are using a hook).

  • This isn't a form but a system workflow message, so there's only Smarty available here. Dec 31 '18 at 17:32
  • Okay, I was thrown in the wrong direction by the $formValues. Jan 3 '19 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.