Created
May 19, 2015 13:55
-
-
Save JRondeau16/70a70dac0c298a8fcb3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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