<from> property to be dynamic i.e. it can depend on a input field in the form

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

<from> property to be dynamic i.e. it can depend on a input field in the form

emailtoakash
<from> property to be dynamic i.e. it can depend on a input field in the form
I need some help in making the <from> property in properties.local.xml to be overridden by a dynamic value from input field in a form. i.e. actually I want sender of the email to be the person who is submitting the form.also there can be many email recipient in the form to which email will go.i.e those other email addresses should be in <to> except the person who is filling the form.

Please help  
Reply | Threaded
Open this post in threaded view
|

Re: <from> property to be dynamic i.e. it can depend on a input field in the form

Erik Bruchez
Administrator
The "from" is not configurable dynamically right now. You can see how it's done here:

    http://goo.gl/I0uUea

The "to" can come from fields, but no special filtering can be done.

It only comes from a property.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: <from> property to be dynamic i.e. it can depend on a input field in the form

emailtoakash
Can it be done by making changes in source code? IF yes please help.
Reply | Threaded
Open this post in threaded view
|

Re: <from> property to be dynamic i.e. it can depend on a input field in the form

Alessandro  Vernet
Administrator
Hi,

I imagine you could do this by changing the email-form.xpl Erik was pointing to his previous message. You can see how this is done for the "To:", and do something similar for the "From:". One potential difficulty is that this code is written in XPL/XSLT, and if you are not already familiar with those languages, you might want to learn about them first.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet