Skip to content

Instantly share code, notes, and snippets.

@islaytitans
Created July 16, 2015 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save islaytitans/160aba8c9a83934745e4 to your computer and use it in GitHub Desktop.
Save islaytitans/160aba8c9a83934745e4 to your computer and use it in GitHub Desktop.
HiddenEmailAttachment Custom Field Type
namespace ISlayTitans.Cms.WebForms.Fields
{
public class HiddenEmailAttachment : Sitecore.Form.Web.UI.Controls.List
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
this.Attributes.Add("style", "display:none;");
// The chosen values can be accessed via the SelectedValue property
var mediaItemIds = SelectedValue;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment