Hello.
So, if I understand it well - you want to modify notification email´s layout as per current alternative form, selected in your bizform properties? I mean when 1st alternative form is selected, you want to send notification e-mail with 5 fields, when 2nd alternative form is selected, you want to send notification e-mail with 10 fields, and so on? Is that correct?
If so, you would need to ensure it via customization, since by default you can have only 1 notification email layout defined, and it cannot be switched dynamically. However, you can send notification e-mail in code and set any layout, according to what alternative form is selected.
You can do it in
OnBeforeSave method of your bizform:
devnet.kentico.com/docs/devguide/modifying_the_code_of_standard_web_parts.htm, where you can get current alternative form´s name from
viewBiz.AlternativeFormFullName property and set
FormEmailTemplate property of given
BizFormInfo object according to it.
Then notification e-mail based on this template (which is chosen according to selected alternative form) is sent.
Please find code example below.
// OnBeforeSave method
//get alternative form´s full name
string sAltFormName = viewBiz.AlternativeFormFullName;
//get BizFormInfo object
CMS.FormEngine.BizFormInfo iBiz = CMS.FormEngine.BizFormInfoProvider.GetBizFormInfo(int.Parse(viewBiz.ID));
//set notification template as per alternative form name
switch (sAltFormName)
{
case "SomeName": iBiz.FormEmailTemplate = "some string"; break;
case "SomeOtherName": iBiz.FormEmailTemplate = "some other string"; break;
default: break;
}
Best Regards,
Radek Macalik