Request a topic or
contact an Arke consultant
404-812-3123
Custom Email Fields for WFFM

Arke Systems Blog

Useful technical and business information straight from Arke.

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Archive

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2024

Custom Email Fields for WFFM

Have you ever needed to create a custom field type for Sitecore Web Forms for Marketers (WFFM)? Have you ever then needed to use that field type in the Send Email Message action in the To/From/CC field? By default, that editor only lets you select field of type Email. Here’s how you extend it to allow additional field types.

  1. Find the /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message item.
  2. Add this to the QueryString field:

AllowedToTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{1D2C0726-D622-4989-B545-4C37A63B97BB}

NOTE: {84ABDA34-F9B1-4D3A-A69B-E28F39697069} is the out of the box Email type, then add your custom types after that separated by a pipe.

AllowedTypes

Now when you use the Send Email Message save action, your custom type will appear in the To field. To control the other email fields on that dialog, use the following querystring parameters.

  • AllowedToTypes
  • AllowedFromTypes
  • AllowedCCTypes
  • AllowedSubjectTypes

For more specific information, reference “Sitecore.Forms.Shell.UI.Dialogs.SendMailEditor, Sitecore.Forms.Core” with Reflector.


Posted by Eric Stoll on Saturday, August 2, 2014 2:05 PM
Permalink | Comments (0) | Post RSSRSS comment feed