1

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?

1

1 Answer 1

0

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).

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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