<script type="text/javascript">
gform.initializeOnLoaded(function () {
jQuery(document).on("gform_post_render", function (event, formId, currentPage) {
if (formId == 2) {
gf_global["number_formats"][2] = {
"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 },
"18": { price: false, value: "decimal_dot" },
"22": { price: false, value: "decimal_dot" },
"27": { price: false, value: "decimal_dot" },
"29": { price: false, value: false },
"17": { price: false, value: "decimal_dot" },
"21": { price: false, value: "decimal_dot" },
"26": { price: false, value: "decimal_dot" },
"31": { price: false, value: false },
"16": { price: false, value: "decimal_dot" },
"20": { price: false, value: "decimal_dot" },
"25": { price: false, value: "decimal_dot" },
"30": { price: false, value: false },
"15": { price: false, value: "decimal_dot" },
"19": { price: false, value: "decimal_dot" },
"24": { price: false, value: "decimal_dot" },
"10": { price: false, value: false },
"11": { price: false, value: "decimal_dot" },
"12": { price: false, value: "decimal_dot" },
"13": { 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"][2] = {
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, 3, 4], 28: [28, 18, 22, 27], 29: [29, 17, 21, 26], 31: [31, 16, 20, 25], 30: [30, 15, 19, 24], 10: [10, 11, 12, 13] },
animation: 0,
defaults: [],
fields: {
"6": [9, 9, 28, 28, 29, 29, 31, 31, 30, 30, 10, 10],
"9": [],
"2": [],
"3": [],
"4": [],
"28": [],
"18": [],
"22": [],
"27": [],
"29": [],
"17": [],
"21": [],
"26": [],
"31": [],
"16": [],
"20": [],
"25": [],
"30": [],
"15": [],
"19": [],
"24": [],
"10": [],
"11": [],
"12": [],
"13": [],
},
};
if (!window["gf_number_format"]) window["gf_number_format"] = "decimal_comma";
jQuery(document).ready(function () {
window["gformInitPriceFields"]();
gf_apply_rules(2, [9, 28, 29, 31, 30, 10], true);
jQuery("#gform_wrapper_2").show();
jQuery(document).trigger("gform_post_conditional_logic", [2, null, true]);
});
}
if (typeof window.gf_global["gfcalc"] == "undefined") {
window.gf_global["gfcalc"] = {};
}
window.gf_global["gfcalc"][2] = new GFCalc(2, [
{
field_id: 4,
formula: "{قطر میلگرد:2} * {قطر میلگرد:2} * {طول میلگرد:3} * 0.0000061701",
rounding: "",
},
{
field_id: 27,
formula: "{قطر میلگرد:18} * {قطر میلگرد:18} * {طول میلگرد:22} * 0.0000061701",
rounding: "",
},
{
field_id: 26,
formula: "{قطر میلگرد:17} * {قطر میلگرد:17} * {طول میلگرد:21} * 0.00000215875",
rounding: "",
},
{
field_id: 25,
formula: "{قطر میلگرد:16} * {قطر میلگرد:16} * {طول میلگرد:20} * 0.0000066725",
rounding: "",
},
{
field_id: 24,
formula: "{قطر میلگرد:15} * {قطر میلگرد:15} * {طول میلگرد:19} * 0.000007056",
rounding: "",
},
{
field_id: 13,
formula: "{قطر میلگرد:11} * {قطر میلگرد:11} * {طول میلگرد:12} * 0.000007056",
rounding: "",
},
]);
}
});
jQuery(document).bind("gform_post_conditional_logic", function (event, formId, fields, isInit) {});
});
</script>
© 2023 Quttera Ltd. All rights reserved.