<script type="text/javascript">
gform.initializeOnLoaded(function () {
jQuery(document).on("gform_post_render", function (event, formId, currentPage) {
if (formId == 9) {
gf_global["number_formats"][9] = {
"6": { price: false, value: false },
"9": { price: false, value: false },
"2": { price: false, value: "decimal_dot" },
"32": { price: false, value: "decimal_dot" },
"4": { price: false, value: "decimal_dot" },
"28": { price: false, value: false },
"35": { price: false, value: "decimal_dot" },
"40": { price: false, value: "decimal_dot" },
"45": { price: false, value: "decimal_dot" },
"29": { price: false, value: false },
"33": { price: false, value: "decimal_dot" },
"39": { price: false, value: "decimal_dot" },
"43": { price: false, value: "decimal_dot" },
"31": { price: false, value: false },
"34": { price: false, value: "decimal_dot" },
"41": { price: false, value: "decimal_dot" },
"44": { price: false, value: "decimal_dot" },
"30": { price: false, value: false },
"36": { price: false, value: "decimal_dot" },
"38": { price: false, value: "decimal_dot" },
"46": { price: false, value: "decimal_dot" },
"10": { price: false, value: false },
"37": { price: false, value: "decimal_dot" },
"42": { price: false, value: "decimal_dot" },
"47": { 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"][9] = {
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: "آهن" }] },
},
29: {
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: "برنجی" }] },
},
30: {
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: "مس" }] },
},
10: {
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, 32, 4], 28: [28, 35, 40, 45], 29: [29, 33, 39, 43], 31: [31, 34, 41, 44], 30: [30, 36, 38, 46], 10: [10, 37, 42, 47] },
animation: 0,
defaults: [],
fields: {
"6": [9, 9, 28, 28, 29, 29, 31, 31, 30, 30, 10, 10],
"9": [],
"2": [],
"32": [],
"4": [],
"28": [],
"35": [],
"40": [],
"45": [],
"29": [],
"33": [],
"39": [],
"43": [],
"31": [],
"34": [],
"41": [],
"44": [],
"30": [],
"36": [],
"38": [],
"46": [],
"10": [],
"37": [],
"42": [],
"47": [],
},
};
if (!window["gf_number_format"]) window["gf_number_format"] = "decimal_comma";
jQuery(document).ready(function () {
window["gformInitPriceFields"]();
gf_apply_rules(9, [9, 28, 29, 31, 30, 10], true);
jQuery("#gform_wrapper_9").show();
jQuery(document).trigger("gform_post_conditional_logic", [9, null, true]);
});
}
if (typeof window.gf_global["gfcalc"] == "undefined") {
window.gf_global["gfcalc"] = {};
}
window.gf_global["gfcalc"][9] = new GFCalc(9, [
{
field_id: 4,
formula: "{وجه _ طول ضلع (mm):2} * {وجه _ طول ضلع (mm):2} * {طول (mm):32} * 0.00000786",
rounding: "",
},
{
field_id: 45,
formula: "{وجه _ طول ضلع (mm):35} * {وجه _ طول ضلع (mm):35} * {طول (mm):40} * 0.00000786",
rounding: "",
},
{
field_id: 43,
formula: "{وجه _ طول ضلع (mm):35} * {وجه _ طول ضلع (mm):35} * {طول (mm):39} * 0.00000275",
rounding: "",
},
{
field_id: 44,
formula: "{وجه _ طول ضلع (mm):34} * {وجه _ طول ضلع (mm):34} * {طول (mm):41} * 0.0000085",
rounding: "",
},
{
field_id: 46,
formula: "{وجه _ طول ضلع (mm):36} * {وجه _ طول ضلع (mm):36} * {طول (mm):38} * 0.000009",
rounding: "",
},
{
field_id: 47,
formula: "{وجه _ طول ضلع (mm):37} * {وجه _ طول ضلع (mm):37} * {طول (mm):42} * 0.000009",
rounding: "",
},
]);
}
});
jQuery(document).bind("gform_post_conditional_logic", function (event, formId, fields, isInit) {});
});
</script>
© 2023 Quttera Ltd. All rights reserved.