Skip to content

Instantly share code, notes, and snippets.

@JRondeau16
Created May 19, 2015 13:55
Show Gist options
  • Save JRondeau16/70a70dac0c298a8fcb3c to your computer and use it in GitHub Desktop.
Save JRondeau16/70a70dac0c298a8fcb3c to your computer and use it in GitHub Desktop.
using Sitecore.Form.Core.Attributes;
using Sitecore.Form.Core.Visual;
using Sitecore.Form.Web.UI.Controls;
namespace MyProject.Integration.Wfm
{
public class TermsAgreement : Checkbox
{
[VisualProperty("Agreement Text:", 200)]
[VisualFieldType(typeof(TextAreaField))]
[VisualCategory("Appearance")]
public string TermsLabel { get; set; }
public new bool Checked
{
get { return base.Checked == "Yes"; }
set { base.Checked = value.ToString(); }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment