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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

jey.rudra
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.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/bf78a7cd-36fa-42c8-822c-3704d3750d5a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

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

Alessandro  Vernet
Administrator
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/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1590430890716-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet