$.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 = '
'+this.title+((this.required)?"*":"")+'
'; return '
'+str+''+this.userhelp+'
'; }, 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 '
'; }, showUserhelp: function(){ return ''; }, showValue:function() { return '
'; }, showURL:function() { return '
'; }, showMessage:function() { return '
'; }, showCsslayout:function() { var str = '
The Acceptance control helps to make the form comply with one of requirements of the General Data Protection Regulation (GDPR)
'; return $.fbuilder.controls[ 'ffields' ].prototype.showCsslayout.call(this)+str; }, showSpecialDataInstance: function() { return this.showValue()+this.showURL()+this.showMessage(); } });