	$.fbuilder.typeList.push(
		{
			id:"facceptance",
			name:"Accept/GDPR",
			control_category:1
		}
	);
	$.fbuilder.controls[ 'facceptance' ] = function(){};
	$.extend(
		$.fbuilder.controls[ 'facceptance' ].prototype,
		$.fbuilder.controls[ 'ffields' ].prototype,
		{
			title:"Accept terms and conditions",
			ftype:"facceptance",
			value:"I accept",
			url:"",
			message:"",
			required:true,
			display:function()
				{
					var	str = '<div class="one_column"><input class="field" disabled="true" type="checkbox"/> '+$.fbuilder.htmlEncode(this.title)+((this.required)?"*":"")+'</div>';
					return '<div class="fields '+this.name+'" id="field'+this.form_identifier+'-'+this.index+'" title="'+this.name+'"><div class="arrow ui-icon ui-icon-play "></div><div title="Delete" class="remove ui-icon ui-icon-trash "></div><div title="Duplicate" class="copy ui-icon ui-icon-copy "></div><div class="dfield">'+str+'<span class="uh">'+$.fbuilder.htmlEncode(this.userhelp)+'</span></div><div class="clearer"></div></div>';
				},
			editItemEvents:function()
				{
					var me 		= this;
						evt 	= [
							{s:"#sValue",e:"change keyup", l:"value"},
							{s:"#sURL",e:"change keyup", l:"url"},
							{s:"#sMessage",e:"change keyup", l:"message"}
						];
					$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this, evt);
				},
			showRequired: function(v)
				{
					return '<div><input type="checkbox" checked disabled><label>Acceptance fields are always required</label></div>';
				},
			showUserhelp: function(){ return ''; },
			showValue:function()
				{
					return '<div><label>Value</label><input class="large" type="text" name="sValue" id="sValue" value="'+$.fbuilder.htmlEncode(this.value)+'"></div>';
				},
			showURL:function()
				{
					return '<div><label>URL to the Consent and Acknowledgement page</label><input class="large" type="text" name="sURL" id="sURL" value="'+$.fbuilder.htmlEncode(this.url)+'"></div>';
				},
			showMessage:function()
				{
					return '<div><label>- or - enter the Consent and Acknowledgement text</label><textarea class="large" name="sMessage" id="sMessage" style="height:150px;">'+this.message+'</textarea></div>';
				},
			showCsslayout:function()
				{
					var str = '<div style="color: #666;border: 1px solid #EF7E59;display: block;padding: 5px;background: #FBF0EC;border-radius: 4px;text-align: center;margin-top:20px;">The Acceptance control helps to make the form comply with one of requirements of the General Data Protection Regulation (GDPR)</div>';

					return $.fbuilder.controls[ 'ffields' ].prototype.showCsslayout.call(this)+str;
				},
			showSpecialDataInstance: function()
				{
					return this.showValue()+this.showURL()+this.showMessage();
				}
	});