sparq-lender/ng6-seed/Sparq-Lender Test(27--09-2021)Web/assets/data/sales_pd_templates/22-1.json
venbatechnologies@gmail.com 97377addae add adency fetures
2021-11-27 15:30:02 +05:30

1782 lines
69 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"form_name":"Personal Discussion Sheet - Business Loans (For Sales Team)",
"config":[
{
"purpose":"LOCAL_OR_API_FORM_VALUES",
"expression":"(function () {if('constitution'.toLowerCase() == '9' || 'constitution'.toLowerCase() == '10'){ removeSection('3') } else { addSection('3')}return true}());",
"value_keys":[{"key_names":["constitution"],"section_id":"1"},{"key_names":["institution_type"],"section_id":"4"}]
}
],
"sections":[
{
"section_id":"1",
"section_name":"General Section",
"onsubmit":[
{
"key_name":"constitution",
"expression":"(function () {if(control.question_key == 'constitution'){addorUpdateLocalStorage('constitution',control.answer_value);}return true}());",
"msg":""
}
],
"questions":[
{
"question":"Name of The Main Loan Applicant",
"question_key":"main_loan_applicant",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Main Loan Applicant Name Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[A-Za-z ]*",
"message":"alphabets only ",
"value":null
}
],
"onchange_properties":null
},
{
"question":"Name of the Company",
"question_key":"company_name",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Company Name Required",
"value":null
}
]
},
{
"question":"Constitution",
"question_key":"constitution",
"type":"8",
"answers":[
{
"answer_id":"6",
"answer":"Cooperative",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"4",
"answer":"HUF (Hindu Undivided Family)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"7",
"answer":"Limited Liability Partnership(LLP)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"5",
"answer":"Partnership",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"11",
"answer":"Private Limited Company",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"2",
"answer":"Public Ltd Company",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"12",
"answer":"Self Employed-Individual",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"9",
"answer":"Society",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"3",
"answer":"Sole proprietorship",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"10",
"answer":"Trust",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Constitution Required",
"value":null
}
]
},
{
"question":"Name of the Person Met during visit",
"question_key":"person_met_during_visit",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Person Met Name Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[A-Za-z ]*",
"message":"alphabets only ",
"value":null
}
]
},
{
"question":"Person Met Designation",
"question_key":"person_met_designation",
"type":"8",
"answers":null,
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"COMPANYRELATIONSHIPS"
},
"fields":[
"company_relationship_id",
"name"
]
},
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Designation Required",
"value":null
}
]
},
{
"question":"Person Met Contact No",
"question_key":"person_met_contact_no",
"type":"1",
"field_type":"num",
"place_holder":"Enter the number",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{10,12}",
"message":"Mobile number must be 10 digit",
"value":null
}
]
},
{
"question":"Address Visited",
"question_key":"address_visited",
"place_holder":"Enter door no,street",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Address Required",
"value":null
}
]
},
{
"question":"State",
"question_key":"state",
"type":"8",
"answers":null,
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"STATE"
},
"fields":[
"state_id",
"name"
]
},
"onchange_properties":[
{
"purpose":"api",
"api":"getListOfStatesAndCities",
"api_method":"POST",
"params":"{records:{state_id:'value_of_answer'}}",
"fields":[
"state_id",
"name"
],
"local_variable":"local_city"
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"State Required",
"value":null
}
]
},
{
"question":"City",
"question_key":"city",
"type":"8",
"answers":null,
"api_properties":"local_city",
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"CIty Required",
"value":null
}
]
},
{
"question":"Pincode",
"question_key":"pincode",
"type":"8",
"answers":null,
"api_properties":"local_pincode",
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"pincode",
"expression":"(String('pincode') == (String('1')))",
"value_keys":[
"pincode"
],
"questions":[
{
"question":"Please Specify the Pincode",
"question_key":"pincode_other",
"place_holder": "Enter the number",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "num",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Pincode Required",
"value":null
}
]
}
]
},
{
"section_id":"2",
"section_name":"Fund Requirement",
"onsubmit":null,
"questions":[
{
"question":"Loan Amount (Rs)",
"question_key":"loan_amount_applied",
"place_holder":"Enter amount",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Loan amount Required",
"value":null
}
],
"onchange_properties":[
]
},
{
"question":"Loan Tenure (Months)",
"question_key":"loan_tenure",
"place_holder":"Enter number",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Loan tenure Required"
},
{
"name":"maxLength",
"validator":"3",
"isactive":"1",
"message":"loan tenure 3 digit only",
"value":null
}
]
},
{
"question":"Loan Purpose (End-Use)",
"question_key":"loan_purpose",
"type":"4",
"answers":[
{
"answer_id":"Purchase of Medical Equipment (New)",
"answer":"Purchase of Medical Equipment (New)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Purchase of Medical Equipment (Refurbished)",
"answer":"Purchase of Medical Equipment (Refurbished)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Purchase of Medical Equipment (New and Refurbished)",
"answer":"Purchase of Medical Equipment (New and Refurbished)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Refinance",
"answer":"Refinance",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Others (Specify)",
"answer":"Others (Specify)",
"subfield_key":"other_end_use",
"subfield_caption":"Specifiy Other End Use",
"subfield_type":"1"
}
],
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Loan purpose Required",
"value":null
}
]
}
]
},
{
"section_id":"3",
"section_name":"Details of key stakeholders",
"onsubmit":[
{
"key_name":"share_holding",
"expression":"(function () {let sum_val=null;let ques_key=[];control.questions_group.forEach(ques_obj=>{ques_obj.questions.map(ques=>{if(ques.question_key == 'share_holding'){ques_key.push(ques)}})});if(ques_key.length > 0){sum_val= ques_key.map(val=>val.answer_value).reduce((tot,val)=>{return parseInt(tot)+parseInt(val)})}return sum_val<=100}())",
"msg":"Sum of shareholding should be equal to 100"
}
],
"questions":[
{
"question":[
{
"question":"Name",
"question_key":"name",
"place_holder":"Enter text",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Name Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[A-Za-z ]*",
"message":"alphabets only ",
"value":null
}
]
},
{
"question":"Share Holding (%)",
"question_key":"share_holding",
"place_holder":"Enter number",
"type":"1",
"api_properties":null,
"answers":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Share value Required",
"value":null
},
{
"name":"max",
"validator":"100",
"isactive":"1",
"message":"Number must be less than 100",
"value":null
}
]
},
{
"question":"Vintage in Current Business",
"question_key":"vintage_in_current_biz",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Current vintage Required",
"value":null
},
{
"name":"pattern",
"isactive":"1",
"validator":"[0-9]{0,3}",
"message":"Year should be 3 digit",
"value":null
}
],
"onchange_properties":[
{
"purpose":"validations",
"validations":[
{
"name":"max",
"isactive":"1",
"validator":"",
"message":"should be less or equal to Total Work Exp",
"value":"total_work_exp",
"validation_to":null,
"value_keys":null
}
]
}
]
},
{
"question":"Total Work Exp",
"question_key":"total_work_exp",
"place_holder":"Enter in years",
"type":"1",
"api_properties":null,
"answers":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Total experience Required",
"value":null
},
{
"name":"maxLength",
"isactive":"1",
"validator":"2",
"message":"Year should be two digit",
"value":null
}
],
"onchange_properties":[
{
"purpose":"validations",
"validations":[
{
"name":"min",
"isactive":"1",
"validator":"",
"message":"should be greater or equal to current work exp",
"value":"vintage_in_current_biz",
"validation_to":null,
"value_keys":null
}
]
}
]
},
{
"question":"Started Business",
"question_key":"started_biz",
"type":"3",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"No",
"answer":"No",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Started Business Required",
"value":null
}
]
}
],
"is_repeatable":"1",
"group_title":"Details of Key Stakeholders in the Business"
}
]
},
{
"section_id": "4",
"section_name": "Institution Details",
"onsubmit":[
{
"key_name":"institution_type",
"expression":"(function () {if(control.question_key == 'institution_type'){addorUpdateLocalStorage('institution_type',control.answer_value);}return true}());",
"msg":""
}
],
"questions": [
{
"question":"Type of institution",
"question_key":"institution_type",
"type":"3",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"floor",
"expression":"(String('institution_type') == String('Hospital')) || (String('institution_type') == String('Nursing Home'))",
"value_keys":[
"institution_type"
],
"questions":[
{
"question":"How many Bedded",
"question_key":"how_many_beds",
"type":"1",
"field_type":"num",
"place_holder": "Enter the number",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Occupancy Ratio",
"question_key":"occupancy_ratio",
"type":"1",
"field_type":"num",
"place_holder": "Enter the number",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question_key":"tot_doctors",
"question":"How many doctors",
"place_holder": "Enter the number",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "num",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
},
{
"name": "pattern",
"isactive": "1",
"validator": "[0-9]*",
"message": "Number only accepted",
"value": null
}
]
},
{
"question_key":"permanent_doctors",
"question":"Permanent",
"place_holder": "Enter the number",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "num",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
},
{
"name": "pattern",
"isactive": "1",
"validator": "[0-9]*",
"message": "Number only accepted",
"value": null
}
]
},
{
"question_key":"temp_doctors",
"question":"Temporary",
"place_holder": "Enter the number",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "num",
"validations": [
{
"name": "pattern",
"isactive": "1",
"validator": "[0-9]*",
"message": "Number only accepted",
"value": null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"answers":[
{
"answer_id":"Hospital",
"answer":"Hospital",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Nursing Home",
"answer":"Nursing Home",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Diagnostic Centre",
"answer":"Diagnostic Centre",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"About the Locality",
"question_key":"about_locality",
"type":"4",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Hospital area",
"answer":"Hospital area",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Commercial area",
"answer":"Commercial area",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Residential area",
"answer":"Residential area",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Institution Vintage",
"question_key":"instituion_vitage",
"type":"3",
"api_properties":null,
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"instituion_vitage",
"expression":"(String('instituion_vitage') == String('Existing'))",
"value_keys":[
"instituion_vitage"
],
"questions":[
{
"question_key":"existing_since",
"question":"Existing Since",
"place_holder": "Enter the year eg 2012, 2015 etc",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "num",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
},
{
"name": "pattern",
"isactive": "1",
"validator": "[0-9]*",
"message": "Number only accepted",
"value": null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"answers":[
{
"answer_id":"New (Startup)",
"answer":"New (Startup)",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Existing",
"answer":"Existing",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Opening New Branch (Yes/No)",
"question_key":"opening_new_branch",
"type":"3",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"No",
"answer":"No",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Property Ownership",
"question_key":"property_ownership",
"type":"3",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Owned",
"answer":"Owned",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Rented",
"answer":"Rented",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Area (Sq Feet)",
"question_key":"area_sq_feet",
"type":"1",
"place_holder": "Enter the number",
"field_type":"num",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Floors",
"question_key":"floor",
"type":"1",
"field_type":"num",
"place_holder": "Enter the number",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Number of staff observed",
"question_key":"staff_observer_number",
"type":"1",
"field_type":"num",
"place_holder": "Enter the number",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Business activity seen (Yes/No)",
"question_key":"business_activity_seen",
"type":"3",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":[
{
"answer_id":"Yes",
"answer":"Yes",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"No",
"answer":"No",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
]
},
{
"section_id":"5",
"section_name":"Product Information",
"onsubmit":null,
"questions":[
{
"question":"Equipment List",
"question_key":"equipment_list",
"type":"8",
"is_multiple":"1",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"SALESEQUIPMENTLIST"
},
"fields":[
"id",
"equipment"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"equipment_list",
"expression":"(String(JSON.stringify('equipment_list')).includes(String('24')))",
"value_keys":[
"equipment_list"
],
"questions":[
{
"question":"Please Specify the Equipments",
"question_key":"equipment_list_other",
"place_holder": "Enter the text",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Total invoice value of the selected product",
"question_key":"tot_product_invoice_value",
"type":"1",
"field_type":"numtoword",
"place_holder": "Enter the amount",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
},
{
"question":"Vendor list",
"question_key":"vendor_list",
"type":"8",
"is_multiple":"1",
"api_properties":{
"api":"getListOfMaster",
"api_method":"POST",
"params":{
"master_name":"SALESVENDORLIST"
},
"fields":[
"id",
"vendor"
]
},
"onchange_properties":[
{
"purpose":"FORM_CTRL",
"form_controls":[
{
"insert_index":"vendor_list",
"expression":"(String(JSON.stringify('vendor_list')).includes(String('16')))",
"value_keys":[
"vendor_list"
],
"questions":[
{
"question":"Please Specify the Vendors",
"question_key":"vendor_list_other",
"place_holder": "Enter the text",
"type": "1",
"api_properties": null,
"answers": null,
"onchange_properties": null,
"is_repeatable": null,
"field_type": "string",
"validations": [
{
"name": "required",
"isactive": "1",
"validator": "Validators.required",
"message": "Required",
"value": null
}
]
}
]
}
]
}
],
"is_repeatable":null,
"answers":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
]
}
]
},
{
"section_id":"6",
"section_name":"Financial Information",
"onsubmit":[
{
"expression":"(function (){let sum_val=null;let ques_key=[];control.questions_group.forEach(ques_obj=>{ques_obj.questions.map(ques=>{if(ques.question_key == submitProperty.key_name){ques_key.push(ques.answer_value)}})});console.log('none',ques_key);return new Set(ques_key).size === ques_key.length}())",
"key_name":"fy",
"msg":"Year already entered earlier"
}
],
"questions":[
{
"question":[
{
"question":"Enter FY",
"question_key":"fy",
"type":"3",
"answers":[
],
"answer_value":"GET_FY_YEARS",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Fin Yr Required",
"value":null
}
]
},
{
"question":"Sales / Revenue (Rs) ",
"question_key":"sales_revenue",
"place_holder":"Enter amount",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Sales/Revenue Required",
"value":null
}
]
},
{
"question":"Net Profit / (Net Loss) (Rs) ",
"question_key":"net_profit",
"place_holder":"Enter amount",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Net profit/loss Required",
"value":null
}
],
"onchange_properties":[
{
"purpose":"validations",
"validations":[
{
"name":"max",
"isactive":"1",
"validator":"",
"message":"should be less then sales",
"value":"sales_revenue",
"validation_to":null,
"value_keys":null
}
]
}
]
}
],
"is_repeatable":"1",
"group_title":"Particulars of Financials as per books of Accounts"
},
{
"question":"Income Considered (Rs Per Annum) ",
"question_key":"income_considered",
"place_holder":"Enter amount",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Income Considered Required",
"value":null
}
],
"onchange_properties":[
]
},
{
"question":"Income assessment Program ",
"question_key":"income_assessment_program_recommended",
"type":"3",
"answers":[
{
"answer_id":"Vanilla",
"answer":"Vanilla",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Projection based",
"answer":"Projection based",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"api_properties":null,
"onchange_properties":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Income assessment Program Required",
"value":null
}
]
},
{
"question":"Fixed Obligations (Rs per month) ",
"question_key":"fixed_obligations",
"place_holder":"Enter amount",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"numtoword",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Fixed Obligations Required",
"value":null
}
],
"onchange_properties":null
},
{
"question":"Selected equipment contribution in trunover",
"question_key":"equipment_contribution_turnover",
"place_holder":"Enter text",
"question_enable":"PD_FORM_VALUES.institution_type == String('Diagnostic Centre')",
"type":"1",
"answers":null,
"api_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Required",
"value":null
}
],
"onchange_properties":null
}
]
},
{
"section_id":"7",
"section_name":"Final Remarks of PD officer",
"onsubmit":null,
"questions":[
{
"question":"Business activity seen during visit ",
"question_key":"business_activity_seen",
"type":"2",
"answers":[
{
"answer_id":"Yes",
"answer":"Yes",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"No",
"answer":"No ",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Location of workplace suits the business",
"question_key":"location_workplace_suits_business",
"type":"2",
"answers":[
{
"answer_id":"Yes",
"answer":"Yes",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"No",
"answer":"No ",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Overall Assessment",
"question_key":"overall_assessment",
"type":"2",
"answers":[
{
"answer_id":"Positive",
"answer":"Positive",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
},
{
"answer_id":"Negative",
"answer":"Negative ",
"subfield_key":"",
"subfield_caption":"",
"subfield_type":""
}
],
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Recommended ROI for the case (%)",
"question_key":"recommended_roi",
"place_holder":"Enter number",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"num",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
},
{
"name":"maxLength",
"isactive":"1",
"validator":"2",
"message":"Two digit only",
"value":null
}
]
},
{
"question":"What are the future expansion plans of business",
"question_key":"future_business_expansion_plans",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
]
},
{
"question":"Any Other remarks ",
"question_key":"any_other_remarks",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
]
}
]
},
{
"section_id":"8",
"section_name":"Officer Details",
"onsubmit":null,
"questions":[
{
"question":"Name of Sales Team Member",
"question_key":"name_of_sales_team_member",
"place_holder":"Enter text",
"type":"1",
"field_type":"string",
"answers":null,
"answer_value":"CURRENT_USER",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Designation",
"question_key":"designation",
"place_holder":"Enter text",
"type":"1",
"answers":null,
"answer_value":"",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
},
{
"question":"Date",
"question_key":"date",
"place_holder":"Enter date",
"type":"1",
"answers":null,
"answer_value":"CURRENT_DATE",
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"field_type":"string",
"validations":[
{
"name":"required",
"isactive":"1",
"validator":"Validators.required",
"message":"Field Required",
"value":null
}
]
}
]
},
{
"section_id":"9",
"section_name":"Photograph's",
"onsubmit":[
{
"expression":"(function () {let sum_val=null;let ques_key=[];if(control.question_key == submitProperty.key_name && control.answer_value == ''){return false}else{return true}return sum_val}())",
"key_name":"selfie_with_person_met",
"msg":"Please take selfie with person met"
}
],
"questions":[
{
"question":"Selfie with person met",
"question_key":"selfie_with_person_met",
"type":"6",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
]
},
{
"question":[
{
"question":"Institute Building",
"question_key":"hospital_building",
"type":"6",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
]
}
],
"is_repeatable":"1",
"group_title":"Institute Building photographs",
"group_type":"6"
},
{
"question":[
{
"question":"Name Board",
"question_key":"name_board_seen",
"type":"6",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
]
}
],
"is_repeatable":"1",
"group_title":"Name Board photographs",
"group_type":"6"
},
{
"question":[
{
"question":"Institute Interior",
"question_key":"institute_interior",
"type":"6",
"answers":null,
"api_properties":null,
"onchange_properties":null,
"is_repeatable":null,
"validations":[
]
}
],
"is_repeatable":"1",
"group_title":"Institute Interior photographs",
"group_type":"6"
}
]
}
]
}