How to call in the data(variable) from a form to the email subject and body?

4 views
Skip to first unread message

Jey Rudra

unread,
May 21, 2020, 11:40:33 PM5/21/20
to Orbeon Forms
Installed version: orbeon-2019.2.0.201912301747-CE


Hi,

Is it possible to call in the data(variable) from fields in the form to the email subject and body in Orbeon CE with <property as="xs:string" name="oxf.fr.resource.*.*.en.email.subject">?

Example:

Subject: Form submitted by $name - $date 

Body: This form is from $name, submitted on $date


I tried this method, but it did not work...
<property as="xs:string" name="oxf.fr.resource.myapp.myform.en.email.subject">
concat(
  'Form submitted by ',
   //name,
  ' - ',
  //date
)
</property>

Please advise. Thank you.

Alessandro Vernet

unread,
May 25, 2020, 2:21:34 PM5/25/20
to orb...@googlegroups.com
Hi Jey,

Yes, using the template syntax (see 1st link below), but this will only work
with Orbeon Forms PE, because you need to define the template parameter,
which can only be done in Form Builder in the Email Settings dialog, which
is PE-only (see 2nd link below). Hopefully you can use Orbeon Forms PE, or
do without this!

https://doc.orbeon.com/form-builder/advanced/template-syntax
https://doc.orbeon.com/form-builder/advanced/email-settings

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/
Reply all
Reply to author
Forward
0 new messages