Fairoj : Validation removal in templates

This commit is contained in:
venbatechnologies@gmail.com 2021-01-29 20:09:26 +05:30
parent 5656f6bbd4
commit 10f664e22b
2 changed files with 747 additions and 927 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,143 +1,117 @@
{
"section_id": "9",
"section_name": "Business and Personal Banking Details",
"onsubmit": [],
"questions": [
{
"question": [
{
"question": "Account holder name",
"question_key": "applicant_name",
"type": "1",
"api_properties": {
"purpose": "answer_options_local",
"master_name": "pd_applicants",
"fields": [
"pd_co_applicant_id",
"applicant_name"
]
},
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
]
},
{
"question": "Bank Name",
"question_key": "bank_name",
"type": "1",
"field_width": "45",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field Required",
"value": null
}
]
},
{
"question": "Account type",
"question_key": "account_type",
"type": "3",
"field_width": "45",
"api_properties":null,
"answers": [
{
"answer":"Savings",
"answer_id":"Savings"
},
{
"answer":"OD",
"answer_id":"OD"
"section_id": "9",
"section_name": "Business and Personal Banking Details",
"onsubmit": [],
"questions": [
{
"question": [
{
"question": "Account holder name",
"question_key": "applicant_name",
"type": "1",
"api_properties": {
"purpose": "answer_options_local",
"master_name": "pd_applicants",
"fields": [
"pd_co_applicant_id",
"applicant_name"
]
},
{
"answer":"Current",
"answer_id":"Current"
},
{
"answer":"CC",
"answer_id":"CC"
}
],
"onchange_properties": [
{
"purpose":"FORM_CTRL",
"form_controls":[{
"insert_index":"account_type",
"expression":"(String('account_type').toLowerCase() != String('savings') && String('account_type').toLowerCase() != String('current'))",
"value_keys":[
"account_type"
],
"questions":[
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
]
},
{
"question": "Bank Name",
"question_key": "bank_name",
"type": "1",
"field_width": "45",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"validations": [
]
},
{
"question": "Account type",
"question_key": "account_type",
"type": "3",
"field_width": "45",
"api_properties": null,
"answers": [
{
"answer": "Savings",
"answer_id": "Savings"
},
{
"answer": "OD",
"answer_id": "OD"
},
{
"answer": "Current",
"answer_id": "Current"
},
{
"answer": "CC",
"answer_id": "CC"
}
],
"onchange_properties": [
{
"purpose": "FORM_CTRL",
"form_controls": [
{
"question": "OD/CC Limit",
"question_key": "cc_limit",
"type": "1",
"field_width": "45",
"field_type": "num",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"validations": [
"insert_index": "account_type",
"expression": "(String('account_type').toLowerCase() != String('savings') && String('account_type').toLowerCase() != String('current'))",
"value_keys": [
"account_type"
],
"questions": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field Required",
"value": null
"question": "OD/CC Limit",
"question_key": "cc_limit",
"type": "1",
"field_width": "45",
"field_type": "num",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"validations": [
]
}
]
}
]
}]
}
],
"is_repeatable": null,
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Field Required",
"value": null
}
]
}
],
"is_repeatable": "1",
"group_title": "Banking Details",
"group_key": "banking_details"
},
{
"question_key":"common_remarks",
"question":"Remarks",
"place_holder":"Enter the text",
"type":"7",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"field_width":"45",
"validations":[
]
}
]
]
}
],
"is_repeatable": null,
"validations": [
]
}
],
"is_repeatable": "1",
"group_title": "Banking Details",
"group_key": "banking_details"
},
{
"question_key": "common_remarks",
"question": "Remarks",
"place_holder": "Enter the text",
"type": "7",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"field_width": "45",
"validations": []
}
]
}