<script type="text/javascript">
gform.initializeOnLoaded(function () {
jQuery(document).on("gform_post_render", function (event, formId, currentPage) {
if (formId == 10) {
gf_global["number_formats"][10] = {
"6": { price: false, value: false },
"9": { price: false, value: false },
"2": { price: false, value: "decimal_dot" },
"3": { price: false, value: "decimal_dot" },
"4": { price: false, value: "decimal_dot" },
"28": { price: false, value: false },
"32": { price: false, value: "decimal_dot" },
"34": { price: false, value: "decimal_dot" },
"36": { price: false, value: "decimal_dot" },
"31": { price: false, value: false },
"33": { price: false, value: "decimal_dot" },
"35": { price: false, value: "decimal_dot" },
"37": { price: false, value: "decimal_dot" },
};
if (window["jQuery"]) {
if (!window["gf_form_conditional_logic"]) window["gf_form_conditional_logic"] = new Array();
window["gf_form_conditional_logic"][10] = {
logic: {
9: {
field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "استیل" }] },
nextButton: null,
section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "استیل" }] },
},
28: {
field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آهن" }] },
nextButton: null,
section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "آهن" }] },
},
31: {
field: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "برنجی" }] },
nextButton: null,
section: { enabled: true, actionType: "show", logicType: "all", rules: [{ fieldId: "6", operator: "is", value: "برنجی" }] },
},
},
dependents: { 9: [9, 2, 3, 4], 28: [28, 32, 34, 36], 31: [31, 33, 35, 37] },
animation: 0,
defaults: [],
fields: { "6": [9, 9, 28, 28, 31, 31], "9": [], "2": [], "3": [], "4": [], "28": [], "32": [], "34": [], "36": [], "31": [], "33": [], "35": [], "37": [] },
};
if (!window["gf_number_format"]) window["gf_number_format"] = "decimal_comma";
jQuery(document).ready(function () {
window["gformInitPriceFields"]();
gf_apply_rules(10, [9, 28, 31], true);
jQuery("#gform_wrapper_10").show();
jQuery(document).trigger("gform_post_conditional_logic", [10, null, true]);
});
}
if (typeof window.gf_global["gfcalc"] == "undefined") {
window.gf_global["gfcalc"] = {};
}
window.gf_global["gfcalc"][10] = new GFCalc(10, [
{
field_id: 4,
formula:
"{ارتفاع _ آچارخور (mm):2} * {ارتفاع _ آچارخور (mm):2} * {طول (mm):3} * 0.00000681",
rounding: "",
},
{
field_id: 36,
formula: "{قطر میلگرد:32} * {قطر میلگرد:32} * {طول میلگرد:34} * 0.00000681",
rounding: "",
},
{
field_id: 37,
formula: "{قطر میلگرد:33} * {قطر میلگرد:33} * {طول میلگرد:35} * 0.00000737",
rounding: "",
},
]);
}
});
jQuery(document).bind("gform_post_conditional_logic", function (event, formId, fields, isInit) {});
});
</script>
© 2023 Quttera Ltd. All rights reserved.