Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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