Developer forum

Forum » CMS - Standard features » Custom subject in email - Forms for datalist

Custom subject in email - Forms for datalist

Peter Klünder


Have searched high and low, anybody who can tell me if its possible to create a custom subject generated by input fields on the page form?

The APP is the old forms for datalists.

Tried with an input field named FormSubject, but that didnt work.




Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen

Hi Peter

You cannot I am affraid. The subject comes from the SendFormProviders subject setting field.

But it is a provider, so you can actually create your own version of it and use that with your own logic.

I have attached our code for the built in SendFormProvider. If you are lucky, you can just create a new class that inherits the MailFormSaveProvider class and override the constructor and set the MailSubject property to your desired value.

If that does not work, you have to edit our version, give it a new name, compile and upload it and use that as a provider.

Hope that will do it.

BR Nicolai

Peter Klünder

Hi Nicolai

Thank you for a swift reply, sadly that is beyond my abilities :-)

If its not possible through standard implementation / extra hidden fields, I will not venture further.




You must be logged in to post in the forum