1077ADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417Fair FormGeneric Fair FormADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:51:49.53falsefalsefalse10831077Main Processtruetruefalse
1132testForm titleADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417ADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:51:49.53false80020left$(document).ready(function () { // Document Ready ====================================================== /* - .cf-table-block = Name of the class of any table created - blur = JScript event which occurs when something changes - input = Name of the field to monitor/change - sumtotal = Function that sums all the fields into a single field */ $('.cf-table-block').on('blur', 'input', sumtotal); /* - .cf-table-block tbody tr = Names of the classes to target - each = Function to target each of the fields with the same class name - find = Finds everything with the name in '' */ // Sum Total =========================================================== function sumtotal() { var sum = 0; $('.cf-table-block tbody tr').each(function () { var s = 0; $(this).find('.price input').each(function () { s += parseNumber($(this).val()); }) $(this).find('.subtotal input').val(s); sum += (s); }); sum += (sum * 0.15); $('.total input').val(sum); } // End Sum Total =========================================================== /* Used by sumtotal to parse a number to a float value 0 if it is invalid input. Such as a letter or special character. - parseFloat(n) = Converts the value of n to a float and stores it in the variable 'f' - "return isNan(f) ? 0 : f = Checks if f is not integer input and returns 0 if false, or f if true. */ // Parse Number ======================================================== function parseNumber(n) { var f = parseFloat(n); return isNaN(f) ? 0 : f; } // End Parse Number ======================================================== /* The JQuery script from laserfiche which masks a telephone number using the scheme (999)999-9999. */ // Mask ================================================================ (function(g){ "function"===typeof define&&define.amd?define(["jquery"],g):g(window.jQuery||window.Zepto) }) (function(g){ var y=function(a,f,d){ var k=this,x;a=g(a); f="function"===typeof f?f(a.val(),void 0,a,d):f;k.init=function(){ d=d||{}; k.byPassKeys=[9,16,17,18,36,37,38,39,40,91]; k.translation={ 0:{ pattern:/\d/ },9:{ pattern:/\d/,optional:!0 },"#":{ pattern:/\d/,recursive:!0 },A:{ pattern:/[a-zA-Z0-9]/ },S:{pattern:/[a-zA-Z]/ } }; k.translation=g.extend({},k.translation,d.translation); k=g.extend(!0,{},k,d); a.each(function(){ !1!==d.maxlength&&a.attr("maxlength",f.length); d.placeholder&&a.attr("placeholder",d.placeholder); a.attr("autocomplete","off"); c.destroyEvents(); c.events(); var b=c.getCaret(); c.val(c.getMasked()); c.setCaret(b+c.getMaskCharactersBeforeCount(b,!0)) }) }; var c = { getCaret:function(){ var b;b=0; var e=a.get(0),c=document.selection,e=e.selectionStart; if(c&&!~navigator.appVersion.indexOf("MSIE 10"))b=c.createRange(),b.moveStart("character",a.is("input")?-a.val().length:-a.text().length),b=b.text.length; else if(e||"0"===e)b=e; return b },setCaret:function(b){ if(a.is(":focus")){ var e; e=a.get(0); e.setSelectionRange?e.setSelectionRange(b,b):e.createTextRange&&(e=e.createTextRange(),e.collapse(!0),e.moveEnd("character",b),e.moveStart("character",b),e.select()) } },events:function(){ a.on("keydown.mask",function(){x=c.val()}); a.on("keyup.mask",c.behaviour); a.on("paste.mask drop.mask",function(){ setTimeout(function(){ a.keydown().keyup()},100) }); a.on("change.mask",function(){ a.data("changeCalled",!0) }); a.on("blur.mask", function(b){ b=g(b.target); b.prop("defaultValue")!==b.val()&&(b.prop("defaultValue",b.val()),b.data("changeCalled")||b.trigger("change")); b.data("changeCalled",!1) }); a.on("focusout.mask",function(){ d.clearIfNotMatch&&c.val().length<f.length&&c.val("") }) },destroyEvents:function(){ a.off("keydown.mask keyup.mask paste.mask drop.mask change.mask blur.mask focusout.mask").removeData("changeCalled") },val:function(b){ var e=a.is("input");return 0<arguments.length?e?a.val(b):a.text(b):e?a.val():a.text() },getMaskCharactersBeforeCount:function(b,e){ for(var a=0,c=0,d=f.length;c<d&&c<b;c++)k.translation[f.charAt(c)]||(b=e?b+1:b,a++); return a },determineCaretPos:function(b,a,d,h){ return k.translation[f.charAt(Math.min(b-1,f.length-1))]?Math.min(b+d-a-h,d):c.determineCaretPos(b+1,a,d,h)},behaviour:function(b){b=b||window.event; var a=b.keyCode||b.which; if(-1===g.inArray(a,k.byPassKeys)){ var d=c.getCaret(),f=c.val(),n=f.length,l=d<n,p=c.getMasked(),m=p.length,q=c.getMaskCharactersBeforeCount(m-1)-c.getMaskCharactersBeforeCount(n-1); p!==f&&c.val(p); !l||65===a&&b.ctrlKey||(8!==a&&46!==a&&(d=c.determineCaretPos(d,n,m,q)),c.setCaret(d)); return c.callbacks(b) } },getMasked:function(b){ var a=[],g=c.val(),h=0,n=f.length,l=0,p=g.length,m=1,q="push",s=-1,r,u;d.reverse?(q="unshift",m=-1,r=0,h=n-1,l=p-1,u=function(){ return-1<h&&-1<l}):(r=n-1,u=function(){ return h<n&&l<p}); for(;u();){ var v=f.charAt(h),w=g.charAt(l),t=k.translation[v]; if(t)w.match(t.pattern)?(a[q](w),t.recursive&&(-1===s?s=h:h===r&&(h=s-m),r===s&&(h-=m)),h+=m):t.optional&&(h+=m,l-=m),l+=m; else{if(!b)a[q](v); w===v&&(l+=m);h+=m } } b=f.charAt(r); n!==p+1||k.translation[b]||a.push(b); return a.join("")},callbacks:function(b){ var e=c.val(),g=c.val()!==x; if(!0===g&&"function"===typeof d.onChange)d.onChange(e,b,a,d); if(!0===g&&"function"===typeof d.onKeyPress)d.onKeyPress(e,b,a,d); if("function"===typeof d.onComplete&&e.length===f.length)d.onComplete(e,b,a,d) } }; k.remove=function(){ var a=c.getCaret(),d=c.getMaskCharactersBeforeCount(a); c.destroyEvents(); c.val(k.getCleanVal()).removeAttr("maxlength"); c.setCaret(a-d)}; k.getCleanVal=function(){ return c.getMasked(!0) }; k.init()}; g.fn.mask=function(a,f){ this.unmask(); return this.each(function(){ g(this).data("mask",new y(this,a,f)) }) }; g.fn.unmask=function(){ return this.each(function(){ try{g(this).data("mask").remove() }catch(a){} }) }; g.fn.cleanVal=function(){ return g(this).data("mask").getCleanVal() }; g("*[data-mask]").each(function(){ var a=g(this),f={}; "true"===a.attr("data-mask-reverse")&&(f.reverse=!0); "false"===a.attr("data-mask-maxlength")&&(f.maxlength=!1); "true"===a.attr("data-mask-clearifnotmatch")&&(f.clearIfNotMatch=!0); a.mask(a.attr("data-mask"),f); }) }); // End Mask ================================================================ /* - .phone input = .phone is the name of the class which can be named under the advanced field of the field editor. Input is the name of the field in .phone to edit. Basically for all single line input boxes use input when targeting a selector, such as '#q15 input'. However, for all multi-line input boxes use textarea when targeting a selector, such as '#q15 textarea'. - .mask = The name of the function that calls the phone masking script above - "(999)999-9999" = What to mask the number to */ $(".phone input").mask("(999)999-9999"); }); // Show/Hide From Checkbox ================================================= $('.update').onchange=function(){$('.email input').val("asl;dfasd")} } // End Show/Hide From Checkbox ============================================= // End Document Ready ======================================================falsetruefalse113210{"repeatAction":"Add","deleteAction":"Delete","hasRepeatableRows":false,"repeatRowName":"Row {n}","tableColumnWidths":[0,0,0,0],"hideRowLabels":true}tablefalsefalsefalse1001[{"row 1":""}]SalesTaxTablefalsefalsefalsefalsefalse7338Tablefalsefalse113231textfalsefalsefalse100[]pricefalsefalsefalsefalsetrue7339Column_1falsefalse113242textfalsefalsefalse100[]pricefalsefalsefalsefalsetrue7340Column_2falsefalse113253textfalsefalsefalse100[]subtotalfalsefalsefalsefalsetrue7341Subtotalfalsefalse113264textfalsefalsefalse100[]totalfalsefalsefalsefalsetrue7342Totalfalsefalse113225113276{"repeatAction":"Add","deleteAction":"Delete","hasRepeatableRows":false,"repeatRowName":"Row {n}","hideRowLabels":true,"tableColumnWidths":[0]}tablefalsefalsefalse1001[{"row 1":""}]PhoneNumberTablefalsefalsefalsefalsefalse7343Phone_Numberfalsefalse113297textfalsefalsefalse100[]phonefalsefalsefalsefalse (\d\d\d\) \d\d\d-\d\d\d\dtrue7344_xxx_xxx-xxxxfalsefalse1132881132289sectionfalsefalsefalsefalsefalsefalsefalsefalsefalse0falsefalse11322910checkboxfalsefalsefalse1[{"Sign Me Up":"Sign_Me_Up"}]falsetruefalsefalseotherfalse7354Receive_Email_Updatesfalsetrue11322411{"repeatAction":"Add","deleteAction":"Delete","hasRepeatableRows":false,"repeatRowName":"Row {n}","tableColumnWidths":[0],"hideRowLabels":true}tablefalsefalsefalse1001[{"row 1":""}]EmailAddressTablefalsefalsefalsefalsefalse7351Emailfalsetrue11322712textfalsefalsefalse100[]emailfalsefalsefalsefalsetrue7352Emailfalsefalse1132251311321614{"repeatAction":"Add","deleteAction":"Delete","hasRepeatableRows":false,"repeatRowName":"Row {n}","tableColumnWidths":[0],"hideRowLabels":true}tablefalsefalsefalse1001[{"row 1":""}]QuestionTablefalsefalsefalsefalsefalse7347Questionfalsefalse11321815longtextfalsefalsefalse1001003falsefalsefalsefalseothertrue7348Column_3falsefalse1132171611322117{"repeatAction":"Add","deleteAction":"Delete","hasRepeatableRows":false,"repeatRowName":"Row {n}","tableColumnWidths":[0],"hideRowLabels":true}tablefalsefalsefalse1001[{"row 1":""}]AnswerTablefalsefalsefalsefalsefalse7349Answerfalsefalse11322318radiofalsefalsefalse1001[{"choice 1":""},{"choice 2":""},{"choice 3":""}]falsefalsefalsefalseothertrue7350Column_4falsefalse1132221900[{"T":24,"A":"show"}]showany29isSign_Me_Up024show
1133State Fair DylanForm titleADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417ADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417false80020left$(document).ready(function () { phone.val("2228719") });falsetruefalse113310textfalsefalsefalse50[]phonefalsefalsefalsefalsefalse7353phone_numfalsefalse0
1134State FairForm titleADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417ADMINS-1-9-12246189-835879650-1301403347-2054689471-1219720715-22014-06-12T16:50:16.417false80020left95$(document).ready(function(){ var zChar = new Array(' ', '(', ')', '-', '.'); var maxphonelength = 13; var phonevalue1; var phonevalue2; var cursorposition; function ParseForNumber1(object){ phonevalue1 = ParseChar(object.value, zChar); } function ParseForNumber2(object){ phonevalue2 = ParseChar(object.value, zChar); } function backspacerUP(object,e) { if(e){ e = e } else { e = window.event } if(e.which){ var keycode = e.which } else { var keycode = e.keyCode } ParseForNumber1(object) if(keycode >= 48){ ValidatePhone(object) } } function backspacerDOWN(object,e) { if(e){ e = e } else { e = window.event } if(e.which){ var keycode = e.which } else { var keycode = e.keyCode } ParseForNumber2(object) } function GetCursorPosition(){ var t1 = phonevalue1; var t2 = phonevalue2; var bool = false for (i=0; i<t1.length; i++) { if (t1.substring(i,1) != t2.substring(i,1)) { if(!bool) { cursorposition=i bool=true } } } } function ValidatePhone(object){ var p = phonevalue1 p = p.replace(/[^\d]*/gi,"") if (p.length < 3) { object.value=p } else if(p.length==3){ pp=p; d4=p.indexOf('(') d5=p.indexOf(')') if(d4==-1){ pp="("+pp; } if(d5==-1){ pp=pp+")"; } object.value = pp; } else if(p.length>3 && p.length < 7){ p ="(" + p; l30=p.length; p30=p.substring(0,4); p30=p30+")" p31=p.substring(4,l30); pp=p30+p31; object.value = pp; } else if(p.length >= 7){ p ="(" + p; l30=p.length; p30=p.substring(0,4); p30=p30+")" p31=p.substring(4,l30); pp=p30+p31; l40 = pp.length; p40 = pp.substring(0,8); p40 = p40 + "-" p41 = pp.substring(8,l40); ppp = p40 + p41; object.value = ppp.substring(0, maxphonelength); } GetCursorPosition() if(cursorposition >= 0){ if (cursorposition == 0) { cursorposition = 2 } else if (cursorposition <= 2) { cursorposition = cursorposition + 1 } else if (cursorposition <= 5) { cursorposition = cursorposition + 2 } else if (cursorposition == 6) { cursorposition = cursorposition + 2 } else if (cursorposition == 7) { cursorposition = cursorposition + 4 e1=object.value.indexOf(')') e2=object.value.indexOf('-') if (e1>-1 && e2>-1){ if (e2-e1 == 4) { cursorposition = cursorposition - 1 } } } else if (cursorposition < 11) { cursorposition = cursorposition + 3 } else if (cursorposition == 11) { cursorposition = cursorposition + 1 } else if (cursorposition >= 12) { cursorposition = cursorposition } var txtRange = object.createTextRange(); txtRange.moveStart( "character", cursorposition); txtRange.moveEnd( "character", cursorposition - object.value.length); txtRange.select(); } } function ParseChar(sStr, sChar) { if (sChar.length == null) { zChar = new Array(sChar); } else zChar = sChar; for (i=0; i<zChar.length; i++) { sNewStr = ""; var iStart = 0; var iEnd = sStr.indexOf(sChar[i]); while (iEnd != -1) { sNewStr += sStr.substring(iStart, iEnd); iStart = iEnd + 1; iEnd = sStr.indexOf(sChar[i], iStart); } sNewStr += sStr.substring(sStr.lastIndexOf(sChar[i]) + 1, sStr.length); sStr = sNewStr; } $('#q21 input').val(sNewStr); } });falsetruefalse113410selectfalsefalsefalse25[{"Mr.":"Mr"},{"Mrs.":"Mrs"},{"Ms.":"Ms"}]TextInputfalsetruefalsefalsefalse7330User_Titlefalsefalse113421textfalsefalsefalse50[]TextInputfalsefalsefalsefalsefalse7331User_First_Namefalsefalse113432textfalsefalsefalse50[]TextInputfalsefalsefalsefalsefalse7332User_Last_Namefalsefalse1134123textfalsefalsefalse75[]TextInputfalsefalsefalsefalsefalse7333User_Street_Addressfalsefalse1134174textfalsefalsefalse50[]TextInputfalsefalsefalsefalsefalse7334User_Cityfalsefalse1134195selectfalsefalsefalse25[{"AL":"AL"},{"AK":"AK"},{"AZ":"AZ"},{"AR":"AR"},{"CA":"CA"},{"CO":"CO"},{"CT":"CT"},{"DE":"DE"},{"FL":"FL"},{"GA":"GA"},{"HI":"HI"},{"ID":"ID"},{"IL":"IL"},{"IN":"IN"},{"IA":"IA"},{"KS":"KS"},{"KY":"KY"},{"LA":"LA"},{"ME":"ME"},{"MD":"MD"},{"MA":"MA"},{"MI":"MI"},{"MN":"MN"},{"MS":"MS"},{"MO":"MO"},{"MT":"MT"},{"NE":"NE"},{"NV":"NV"},{"NH":"NH"},{"NJ":"NJ"},{"NM":"NM"},{"NY":"NY"},{"NC":"NC"},{"ND":"ND"},{"OH":"OH"},{"OK":"OK"},{"OR":"OR"},{"PA":"PA"},{"RI":"RI"},{"SC":"SC"},{"SD":"SD"},{"TN":"TN"},{"TX":"TX"},{"UT":"UT"},{"VT":"VT"},{"VA":"VA"},{"WA":"WA"},{"WV":"WV"},{"WI":"WI"},{"WY":"WY"},{"Not From United States":"Not From United States"}]falsetruefalsefalsefalse7335User_Statefalsefalse1134206textfalsefalsefalse25[]TextInputfalsefalsefalsefalsefalse7336User_Zipfalsefalse1134217textfalsefalsefalse50[]phonefalsefalsefalsefalse\(\d\d\d\)\d\d\d-\d\d\d\dfalse7337User_Phonefalsefalse95FPCurrent{"Logo":"~/img/Theme/Logo/LFLOGO_template.png","LogoSize":150,"WallPaperBg":"#013658||","HighlightedBg":"#c4d6d6||","FormBorderColor":"#06002c","FormHeaderBg":"#D15B05||","HeaderHeight":46,"FormTitleSize":18,"FormTitleColor":"#ffffff","FormDescSize":12,"FormDescColor":"#ffffff","HelpTextColor":"#666666","HelpTextHoverBg":"#013658||","HelpTextHoverColor":"#ffffff","SubmitButtonColor":"#ffffff","SubmitButtonBg":"#013658","SubmitButtonBorder":0,"SaveButtonColor":"#ffffff","SaveButtonBg":"#013658","SaveButtonBorder":0,"SaveButtonIcon":"","ApproveButtonColor":"#ffffff","ApproveButtonBg":"#5b8772","ApproveButtonBorder":0,"ApproveButtonIcon":"","RejectButtonColor":"#ffffff","RejectButtonBg":"#d15b05","RejectButtonBorder":0,"RejectButtonIcon":""}body {background-color: #013658;}.form-focused {background-color: #c4d6d6;}.cf-formwrap {border-color: #06002c;}.cf-formwrap input[readonly=readonly] {background:none;}#cf-formtitle {background-color: #D15B05;}#cf-formtitle h1 {line-height: 46px;font-size: 18px;color: #ffffff;}#cf-formtitle label {font-size: 12px;color: #ffffff;}label.cf-helptext {color: #666666;}.toolTipWrapper {background-color: #013658;color: #ffffff;}.Submit {color: #ffffff;background: #013658;filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);border: 0px solid ;} .Save {color: #ffffff;background: #013658;filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);border: 0px solid ;} button.Save>div {width: 0px;height: 0px;margin-right: 0px;}.Approve {color: #ffffff;background: #5b8772;filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);border: 0px solid ;} button.Approve>div {width: 0px;height: 0px;margin-right: 0px;}.Reject {color: #ffffff;background: #d15b05;filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);border: 0px solid ;} button.Reject>div {width: 0px;height: 0px;margin-right: 0px;}
73301083User_Titleselectfalse73311083User_First_Nametextfalse73321083User_Last_Nametextfalse73331083User_Street_Addresstextfalse73341083User_Citytextfalse73351083User_Stateselectfalse73361083User_Ziptextfalse73371083User_Phonetextfalse73381083Tabletablefalse73391083Column_1text7338false73401083Column_2text7338false73411083Subtotaltext7338false73421083Totaltext7338false73431083Phone_Numbertablefalse73441083_xxx_xxx-xxxxtext7343false73471083Questiontablefalse73481083Column_3longtext7347false73491083Answertablefalse73501083Column_4radio7349false73511083Emailtablefalse73521083Emailtext7351false73531083phone_numtextfalse73541083Receive_Email_Updatescheckboxfalse73381083Tabletablefalse73431083Phone_Numbertablefalse73471083Questiontablefalse73491083Answertablefalse73511083Emailtablefalse{"viewport":[527,300],"scale":1,"canvas":[-300,1076,728,-527]}31077Fair Formform_namemain_status204213211205206207208209210212stepis0formis0statusis0dateisS-1-9-12246189-835879650-1301403347-2054689471-1219720715-21077Fair Form41077Fair Form Reportstart_date204213211225223stepis0formis0statusis0dateisS-1-9-12246189-835879650-1301403347-2054689471-1219720715-21077Fair FormfalseCentral Standard Time
_anonymousNO_SID_0025falsefalse0false