PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.2.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.2.0
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
bit-form / assets / replaceFieldAndSmartValues.min.js

replaceFieldAndSmartValues.min.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.2.0, at assets/replaceFieldAndSmartValues.min.js

2 lines 624 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var replaceFieldAndSmartValues=function(){"use strict";return function(e,t){const c=new FormData(bfSelect(`#form-${t}`)),a=window?.bf_globals?.[t],{smartTags:n}=a;let r=e;const l=r.match(/\${b\d+-\d+}/g);l&&l.forEach((e=>{const t=e.replace(/\${|}/g,""),n=a.fields[t];if(!n)return;const{fieldName:l}=n,o=c.get(l);null!==o&&(r=r.replace(e,o))}));const o=r.match(/\${input.[a-zA-Z0-9-]+}/g);o&&o.forEach((e=>{const t=e.replace(/\${input.|}/g,""),a=c.get(t);null!==a&&(r=r.replace(e,a))}));const s=r.match(/\$\{([^}]+)\}/g);return s&&s.forEach((e=>{const t=e.replace(/\${|}/g,""),c=n[t];void 0!==c&&(r=r.replace(e,c))})),r}}();
2