Login

Register: click here

][0]; var id = Math.floor(Math.random()*99999); var addTab=function($C,name,description) { if(!name) name='Step ' + count $C.find('.nav-tabs').append('
  • '+ name + (description?'
    ':'')+''+ (description||'') + '
  • '); var $T=$('
    ').appendTo($C.find('.tab-content')); id++;count++; return $T.find('.formBuilderContainer'); }; var renderForms=function(){ myLog('Rendering Form'); $C=$('#formRenderContainer22').html('
    '); count=1; if ($C.closest('.layout-column')[0]) { $C.closest('.layout-column').removeClass('col-md-6 col-md-12'); if ((formBuilderData.options.width||"").toLowerCase().indexOf('full')==-1) { $C.closest('.layout-column').addClass('col-md-6'); } else { $C.closest('.layout-column').addClass('col-md-12').next().addClass('clearBoth'); } } $(formBuilderData.tabs).each(function(i,t){ var $C=addTab($('#formRenderContainer22'),(t.formOptions||{}).name||'',(t.formOptions||{}).description||''); $C.formRender({formData:t.fields}); com.ptly.postFormRender($C,(t.formOptions||{}).columns); }); initContainer($('#formRenderContainer22')); $('#formRenderContainer22').find('.payment').eq(0).change(); $('[required=required],[aria-required=true]').addClass('required'); if(formBuilderData.tabs && formBuilderData.tabs.length>1) { var o=formBuilderData.options; if((o.tabsType||"").indexOf('wizard')>=0) { if(!o.allowSelect) $('.innerMainContent').find('.submitForm').hide(); wizard=$('#formRenderContainer22').smartWizard({ useURLhash:false, showStepURLhash:false, toolbarSettings:{ toolbarPosition:o.allowSelect?'bottom':'both', toolbarButtonPosition:'right' }, anchorSettings:{ enableAllAnchors:true, }, theme:(o.wizardStyle||'').toLowerCase()||'default', transitionEffect:(o.wizardAnimation||'').toLowerCase()||'fade' }).on("showStep", function(e, anchorObject, stepNumber, stepDirection) { if(!o.allowSelect) $('.innerMainContent').find('.submitForm')[((stepNumber+1)>=$('#formRenderContainer22 .tab-content>div').length)?'show':'hide'](); }).on("leaveStep", function(e, anchorObject, stepNumber, stepDirection) { return stepDirection.toLowerCase()!="forward" || checkRequiredFields($('#formRenderContainer22 .tab-content>div').eq(stepNumber).find('.required')); }); } } else $('#formRenderContainer22>ul').hide(); } if(!formBuilderData || !formBuilderData.options) formBuilderData={options:{},tabs:formBuilderData?[formBuilderData]:null} if(formBuilderData.options.wizardStyle) loadScripts(['/Library/SmartWizard-master/dist/css/smart_wizard_theme_'+formBuilderData.options.wizardStyle+'.min.css']); loadScripts(['https://d122d2wjqead0l.cloudfront.net/Library/formBuilder/dist/form-render.min.js?v=2102115932','https://d122d2wjqead0l.cloudfront.net/Library/SmartWizard-master/dist/css/smart_wizard.css?v=495512202','https://d122d2wjqead0l.cloudfront.net/Library/SmartWizard-master/dist/js/jquery.smartWizard.min.js?v=38525293'],function(){ renderForms(); }); });
    Total: £