Developer forum

Forum » Development » Data Lists - Forms change recipient e-mail

Data Lists - Forms change recipient e-mail


Reply
Hi there,

I need to develop a form using the new module Data Lists - Forms that will send the email to different recipients according to the value chosen in a drop down.

With classic module there was a hidden input (<input type="hidden" name="Recipient" value="some_mail@client.com" />) that we could change usig javascript. Is it possible to do the same in the new module? I have tried this solution but without sucess. I belive the name of the input is not the correct.

Any help would be much aprecciated.

Best Regards,
Diogo Brito

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
Hi Diogo

Yes, this is possible, however the procedure is not quite the same as with the old module.

You need to create a field in your form. Just make it a simple hidden field with data type set to String.
Then in the module settings, choose the "Send a receipt via e-mail" form save event. Notice the setting for Recipient e-mail has a checkbox beneath it called "Get from form". Check this and choose the field you created in your form in the dropdown.
The value of the hidden field can be manipulated from JS

Please notice: you need Data Lists - Forms Extended to do this.

Best regards
Jeppe
 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
Another solution is to create a custom Form Save Provider for Data List - Forms. Documentation is available on Engage.

This solution does not require Data List - Forms Extended.

 

You must be logged in to post in the forum