diff --git a/ng6-seed/Sparqsineedge Web 17-02-22 Test.zip b/ng6-seed/Sparqsineedge Web 17-02-22 Test.zip deleted file mode 100644 index a4e60b2e0..000000000 Binary files a/ng6-seed/Sparqsineedge Web 17-02-22 Test.zip and /dev/null differ diff --git a/ng6-seed/Sparqsineedge(WEB 11-03-2022)Test.zip b/ng6-seed/Sparqsineedge(WEB 11-03-2022)Test.zip deleted file mode 100644 index aedd030c3..000000000 Binary files a/ng6-seed/Sparqsineedge(WEB 11-03-2022)Test.zip and /dev/null differ diff --git a/ng6-seed/Sparqsineedge(WEB 19-05-2021)Test.zip b/ng6-seed/Sparqsineedge(WEB 19-05-2021)Test.zip deleted file mode 100644 index 4f37ee579..000000000 Binary files a/ng6-seed/Sparqsineedge(WEB 19-05-2021)Test.zip and /dev/null differ diff --git a/ng6-seed/src/app/app.module.ts b/ng6-seed/src/app/app.module.ts index a820fab66..a7d951b1a 100755 --- a/ng6-seed/src/app/app.module.ts +++ b/ng6-seed/src/app/app.module.ts @@ -65,8 +65,8 @@ import { PushNotifyService } from './shared/push-notify.service'; import { MatVideoModule } from 'mat-video'; import { ReqTokenInterceptor } from './_guard/req-token.interceptor'; import { DynamicNotifyComponent } from './layouts/dynamic-notify/dynamic-notify.component'; -import { SelectAllComponent } from './select-all/select-all.component'; -import { CustomNotificationComponent } from './layouts/custom-notification/custom-notification.component'; +// import { SelectAllComponent } from './select-all/select-all.component'; +// import { CustomNotificationComponent } from './layouts/custom-notification/custom-notification.component'; //import { OtpComponent } from './session/otp/otp.component'; @@ -90,7 +90,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { AdminLayoutComponent, AuthLayoutComponent, NewPasswordDialog,ForgotPass,ChangePasswordDialog, RoleMenuItemsPipe, HttpLoaderComponent, - IncomingCallComponent, VideoChatComponent, DynamicNotifyComponent, SelectAllComponent, CustomNotificationComponent + IncomingCallComponent, VideoChatComponent, DynamicNotifyComponent, ], imports: [ ReactiveFormsModule, diff --git a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts index 16910e7c1..b5b1a8009 100755 --- a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts +++ b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts @@ -21,7 +21,7 @@ import { MatDialog } from '@angular/material'; // import { VideoChatComponent } from 'app/video-chat/video-chat.component'; import { PushNotifyService } from 'app/shared/push-notify.service'; import { DynamicNotifyComponent } from '../dynamic-notify/dynamic-notify.component'; -import { CustomNotificationComponent } from '../custom-notification/custom-notification.component'; + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts index e31d2db09..b3477952c 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts @@ -757,87 +757,25 @@ export class DynamicQuestionTemplateComponent implements OnInit { if(check_dup.length == 0){ this.formGroupN.addControl(val.group_key,this._fb.array([])) - - // val.question.reverse() let childControl: any = this.formGroupN.get(val.group_key) as FormArray - console.log(childControl) - let control_names:any={} - console.log(inserted_control_obj) - console.log(inserted_control_obj.questions[index].group_questions) inserted_control_obj.questions[index].group_questions = [] inserted_control_obj.questions[index].group_questions.push(val.question) - - - console.log(inserted_control_obj.questions[index].group_questions) - console.log(question_index_after) this.whole_json.splice(question_index_after+1,0,val); val.question.forEach(group_val=>{ - - - if(group_val.question_key){ - control_names[group_val.question_key] = '' - console.log(ques_control) - - } - this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val) + control_names[group_val.question_key] = '' // console.log("check ffffff",inserted_control_obj.questions.reverse(),inserted_control_obj.questions,group_val) - + this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val) }) const question_temp:any = JSON.parse(JSON.stringify(val.question)); inserted_control_obj.questions[index].question = question_temp console.log(control_names) - - - - console.log(childControl) - console.log(val.group_questions[0]) + childControl.push(this._fb.group(control_names)) val.group_questions[0].forEach((group_indi,arr_index)=>{ - console.log(arr_index) - //this.quesService.addAdditionalControl(group_indi, childControl.controls[0], arr_index) - console.log(group_indi) - - - if(group_indi.is_repeatable =='2'){ - // childControl.push(this._fb.group(control_names)) - childControl.push(this._fb.group(control_names)) - console.log(childControl) - console.log(group_indi) - - childControl.controls[0].addControl(group_indi.group_key,this._fb.array([])) - - // val.question.reverse() - - console.log(childControl) - - - console.log(group_indi.group_key) - control_names[group_indi.group_key] = '' - // childControl.push(this._fb.group(control_names)) - console.log(control_names) - console.log(childControl) - let s:any = localStorage.getItem('use'); - console.log(s) - - - if( !group_indi.questions_level_two[0][0]){ - this.quesService.addLevelTwoControls2(group_indi,childControl,val.group_questions[0],val.question,arr_index) - } - - - - - - - } - - // console.log(group_indi) - // console.log(childControl) - // console.log(arr_index) - // this.quesService.addAdditionalControl(group_indi, childControl.controls[0], arr_index) + + this.quesService.addAdditionalControl(group_indi, childControl.controls[0], arr_index) }) - } } else{ @@ -854,14 +792,11 @@ export class DynamicQuestionTemplateComponent implements OnInit { } }) } - addOrRemoveControl(val,ques_control,question_index_after,options,paren_ques) { console.log(val); console.log(ques_control); console.log(question_index_after); console.log(paren_ques); - - if(options == 1){ let check_dup=ques_control.filter(control_key=>control_key.question_key == val.question_key) @@ -883,21 +818,13 @@ export class DynamicQuestionTemplateComponent implements OnInit { } } else{ - console.log(paren_ques) + ques_control.forEach((control_key,index)=>{ - if(paren_ques.hasOwnProperty('is_repeatable') && paren_ques.is_repeatable == '1') { - //console.log(control_key) - if(control_key.group_key == paren_ques.group_key){ this.whole_json.splice(index,1) // this.formGroupN.controls[val.question_key].reset() - console.log(paren_ques) - console.log( this.formGroupN.get(paren_ques.group_key)) - - this.formGroupN.removeControl(paren_ques.group_key); - console.log( this.formGroupN.get(paren_ques.group_key)) } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.scss index e27cb318d..447a2f656 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.scss @@ -5,7 +5,7 @@ ::ng-deep { .no-padding > mat-dialog-container { // background: black; padding: 0; - // overflow-y: scroll !important; + overflow-y: scroll !important; } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.ts index ed8badc43..dcc827bae 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms-dynamic/form/form.component.ts @@ -80,7 +80,7 @@ export class FormComponent implements OnInit { } ngOnInit() { - this.getSectionData() + // this.getSectionData() if(this.pd_all_details.form_id=='5' && this.pdMasterList.product_abbr=='LFMP') { @@ -174,6 +174,7 @@ else // this.pdTriggerService.loadTemplate(Number(this.pd_all_details.form_id)).subscribe(result=>{ let params = this.pd_all_details_data.FormData.mapid; console.log(params) + console.log( this.pd_all_details_data) let map_id = this.pd_all_details_data.FormData.map_id let form_id = this.pd_all_details_data.FormData.form_id this.pd_all_details_data.Formname @@ -184,7 +185,7 @@ else if(!environment.production){ console.log( result.dataStatus) - result.dataStatus = false + //result.dataStatus = false } console.log( result.dataStatus) @@ -205,7 +206,11 @@ else console.log(question_template.json) // this.questions_JSON = question_template; console.log( this.questions_JSON) - this.getSectionData() + + if(this.pd_all_details_data.FormData.isAnswered == true){ + this.getSectionData() + } + // this.getSectionData() this.questionService.notify(this.questions_JSON) // setTimeout(() => { // this.covidAnswers = null @@ -238,6 +243,9 @@ else //this.questions_JSON = JSON.parse(question_template.json); console.log(this.questions_JSON); // this.getSectionData() + if(this.pd_all_details_data.FormData.isAnswered == true){ + this.getSectionData() + } this.questionService.notify(this.questions_JSON) setTimeout(() => { @@ -444,9 +452,10 @@ else if(this.pd_all_details_data.hasOwnProperty("Form_parent")){ + console.log(this.pd_all_details_data) let form_group = this.pd_all_details_data.Form_parent.is_group_form let company_id = this.pd_all_details_data.Form_parent.is_business_form - if(form_group == 1){ + if(company_id == 1){ params = {"pdid":this.pdMasterList.pd_id,"parent_pdid":this.pdMasterList.pd_id,formid:this.pd_all_details_data.FormData.form_id,"json":this.commonFormGroup.getRawValue(),fk_createdby:'',"company_id":company_id,"template_id": this.template_id} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts index 9ab4052d4..0863c1443 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts @@ -106,6 +106,7 @@ export class GeneralInfoComponent implements OnInit { /** Constructor Section */ constructor(notifier: NotifierService, private _fb: FormBuilder, private _pd: PdTrigerService, private dialog: MatDialog, @Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef, private titleCase: TitleCasePipe, private imageRef: MatDialogRef) { + console.log(this.pd_all_details) this.pdid = this.pd_all_details.pdmaster_details.pd_id; this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name; this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id; @@ -378,6 +379,7 @@ export class GeneralInfoComponent implements OnInit { } else { + console.log( this.pd_applicants_details) this.pd_applicants_details.forEach((element, key) => { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts index 1e9759a75..8804df978 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts @@ -250,17 +250,22 @@ export class StartPd2Component implements OnInit, OnDestroy { console.log(this.pdMasterList); console.log(details); console.log(this.startPD,2,this.randomString) + let data:any; + data = {pd_FullDetails:this.pdFullDetails,pdMasterList:this.pdMasterList,FormData:details,Formname:details.form_name,pdmaster_details:this.pdMasterList}; let componen_name:any = FormComponent if(details.is_business_form == 1) { componen_name = FormGroupComponent + }else if(details.form_id == '26'){ componen_name = ImagesAllComponent + }else if(details.form_id == '18'){ componen_name = GeneralInfoComponent + data = this.pdFullDetails; } const dialogRef = this.dialog.open(componen_name, { - data: {pd_FullDetails:this.pdFullDetails,pdMasterList:this.pdMasterList,FormData:details,Formname:details.form_name,pdmaster_details:this.pdMasterList}, + data: data, position: { right: '0'}, maxWidth: '100vw', diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html index 787fcde4b..69c409b61 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html @@ -225,7 +225,7 @@ - + diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts index 9034d7648..0429eac48 100755 --- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts +++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts @@ -1084,8 +1084,8 @@ export class PdTrigerService { // console.log(apivalue) // return apivalue // }) - return this._http.get('assets/data/SMC_CREDIT_TEMPLATES/all/'+form_id+'.json').map(rr=>{ - // return this._http.get('assets/data/SMC_CREDIT_TEMPLATES/LFMP/9.json').map(rr=>{ + //return this._http.get('assets/data/SMC_CREDIT_TEMPLATES/all/'+form_id+'.json').map(rr=>{ + return this._http.get('assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json').map(rr=>{ let returnValue ={dataStatus:true,status:200,records:{template:JSON.stringify(rr)}} // this.raw_credit_pd_template= returnValue.records.template console.log("12345") diff --git a/ng6-seed/src/app/template2/form-group/form-group.component.html b/ng6-seed/src/app/template2/form-group/form-group.component.html index aa1435dae..ee4b0307d 100644 --- a/ng6-seed/src/app/template2/form-group/form-group.component.html +++ b/ng6-seed/src/app/template2/form-group/form-group.component.html @@ -1,4 +1,4 @@ - +

@@ -61,6 +61,7 @@ +
diff --git a/ng6-seed/src/app/template2/form-group/form-group.component.scss b/ng6-seed/src/app/template2/form-group/form-group.component.scss index 003696c14..bb963eaeb 100644 --- a/ng6-seed/src/app/template2/form-group/form-group.component.scss +++ b/ng6-seed/src/app/template2/form-group/form-group.component.scss @@ -37,4 +37,149 @@ mat-card .child_mat_card > mat-card { box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); } - } \ No newline at end of file + } + + // .child_mat_card mat-card { +// margin: 2 0%; +// } + + +.body-container { + + background-color: white !important; +} +.form{ + background-color: white !important; +} +.paragraph_change { + color: #fff !important; + background-color: #e00201 !important; + } + + .p-text { + color:#e00201 !important; + font-weight: bold; + } + ::ng-deep .mat-card-header-text{ + margin:0px !important; +} +.mat-purple{ + background-color: gray !important; +} + .cdk-global-overlay-wrapper{ + justify-content: center !important; +} + + $base-card-box-shadow:1.5px 2.6px 24px 0 rgba(0, 35, 136, 0.08) !important; +mat-card .child_mat_card > mat-card { + border-radius: 0px 0px 0px 15px; + box-shadow: $base-card-box-shadow; + transform: scale(0.95); + transition: box-shadow 0.5s, transform 0.5s; + border: 1px solid lavender; + &:hover { + cursor: pointer; + // background-color: #e00201 !important; + transform: scale(1); + box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); + } + + } +::ng-deep .mat-dialog-container{ + overflow: hidden !important; +} + ::ng-deep .mat-card-header-text{ + margin:0px !important; + } + .mat-purple{ + background-color: gray !important; + } + .cdk-global-overlay-wrapper{ + justify-content: center !important; +} +mat-card.parent_mat_card > { + mat-card-header { + display: flex; + flex-direction: column; + } + mat-card-content { + min-height:auto; + max-height:52vh; + overflow:auto; + } + + + + ::ng-deep .mat-menu-content { + padding-top: 0px !important; + padding-bottom: 0px !important; + } + + .mat-menu-item{ + line-height:35px; + height:35px; + } + .user-thumb { + position: absolute; + bottom: -35%; + // img { + // border: 5px solid $white; + // border-radius: 100%; + // height: 75px; + // width: 75px; + // } +} + // @media only screen and (max-width:319px) { + // mat-card-content { + // max-height: 350px; + // overflow: auto; + // } + // } + // @media only screen and (min-width:320px) and (max-width:767px) { + // mat-card-content { + // max-height: 350px; + // overflow: auto; + // } + // } + // @media only screen and (min-width:768px) and (max-width:1023px) { + // mat-card-content { + // max-height: 350px; + // overflow: auto; + // } + // } + // @media only screen and (min-width:1024px) and (max-width:1899px) { + // mat-card-content { + // max-height: 400px; + // overflow: auto; + // } + // } + // @media only screen and (min-width:1900px) { + // mat-card-content { + // max-height: 500px; + // overflow: auto; + // } + // } +} +$base-card-box-shadow:1.5px 2.6px 24px 0 rgba(0, 35, 136, 0.08) !important; +mat-card .child_mat_card > mat-card { + border-radius: 0px 0px 0px 15px; + box-shadow: $base-card-box-shadow; + transform: scale(0.95); + transition: box-shadow 0.5s, transform 0.5s; + border: 1px solid lavender; + &:hover { + cursor: pointer; + // background-color: #e00201 !important; + transform: scale(1); + box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.2); + } + + } + + .form{ + background-color: white !important; + } + .my-disable{ + pointer-events:none; + } + diff --git a/ng6-seed/src/app/template2/form-group/form-group.component.ts b/ng6-seed/src/app/template2/form-group/form-group.component.ts index 5a43461f1..e94a5f5ba 100644 --- a/ng6-seed/src/app/template2/form-group/form-group.component.ts +++ b/ng6-seed/src/app/template2/form-group/form-group.component.ts @@ -7,6 +7,7 @@ import { MasterService } from '../master.service'; import {ActivatedRoute, Router} from "@angular/router"; import { EditTemplateComponent } from '../edit-template/edit-template.component'; +import { ViewComponent } from '../view/view.component'; @Component({ selector: 'app-form-group', templateUrl: './form-group.component.html', @@ -32,7 +33,7 @@ export class FormGroupComponent implements OnInit { errorMessage: any; // vendor_status_arr: any=[]; - constructor( private notifier: NotifierService, + constructor( private notifier: NotifierService,private dialog: MatDialog, private route: ActivatedRoute, private router: Router, private masterService: MasterService, @@ -132,11 +133,32 @@ loadPdViewCompoent(){ console.log(details) localStorage.setItem('form_id',details.form_id); console.log(company) - localStorage.setItem('form',JSON.stringify(details)); - this.masterService.list_3.next(details); - console.log(id) - //this.router.navigate(['Group-form'], { relativeTo: this.route }); - this.router.navigate(['edit',id], { relativeTo: this.route }); + // localStorage.setItem('form',JSON.stringify(details)); + // this.masterService.list_3.next(details); + // console.log(id) + // //this.router.navigate(['Group-form'], { relativeTo: this.route }); + // this.router.navigate(['edit',id], { relativeTo: this.route }); + + if(details.json !== ""){ + localStorage.setItem('form',JSON.stringify(details)); + this.masterService.list_3.next(details); + console.log(id) + //this.router.navigate(['Group-form'], { relativeTo: this.route }); + this.router.navigate(['edit',id], { relativeTo: this.route }); + }else{ + const dialogRef = this.dialog.open(ViewComponent, { + data: {'form_name': details.form_name, 'data':details,id:"1"}, + // position: { right: '0'}, + disableClose: true, + minWidth: '30%', + maxWidth: '40%', + }); + dialogRef.afterClosed() + .subscribe(dataresult => { + // this.notifier.notify('success', 'Successfully allocated.!'); + // this.loadTemplates(this.startPD,2,this.randomString); + }); + } } } diff --git a/ng6-seed/src/app/template2/question-view/question-view.component.html b/ng6-seed/src/app/template2/question-view/question-view.component.html index 7e3c5fa3e..c344eaed7 100644 --- a/ng6-seed/src/app/template2/question-view/question-view.component.html +++ b/ng6-seed/src/app/template2/question-view/question-view.component.html @@ -60,19 +60,19 @@

Available Questions

+ class="example-list" (cdkDropListDropped)="drop($event,null,todo)" >
drag_indicator
-
+
{{check(item)}}
@@ -111,20 +111,20 @@

{{child_name}} - +

+ class="example-list" (cdkDropListDropped)="drop($event,child_name,done)">
drag_indicator
-
+
{{check(item)}}
@@ -156,16 +156,21 @@
-

{{child_name2}}

+

{{child_name2}} + +

+ class="example-list" (cdkDropListDropped)="drop($event,child_name2,basket)">
drag_indicator
-
+
{{check(item)}}
@@ -198,16 +203,21 @@
-

{{child_name3}}

+

{{child_name3}} + +

+ class="example-list" (cdkDropListDropped)="drop($event,child_name3,items)">
drag_indicator
-
+
{{check(item)}}
@@ -238,16 +248,19 @@
-

{{child_name4}}

+

{{child_name4}}

+ class="example-list" (cdkDropListDropped)="drop($event,child_name4,review)">
drag_indicator
-
+
{{check(item)}}
diff --git a/ng6-seed/src/app/template2/question-view/question-view.component.ts b/ng6-seed/src/app/template2/question-view/question-view.component.ts index 059f4c127..ab802b2fc 100644 --- a/ng6-seed/src/app/template2/question-view/question-view.component.ts +++ b/ng6-seed/src/app/template2/question-view/question-view.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { MatDialog } from '@angular/material'; import { ActivatedRoute, Router } from '@angular/router'; @@ -9,12 +9,14 @@ import { ViewComponent } from '../view/view.component'; import {CdkDragDrop, moveItemInArray, transferArrayItem} from '@angular/cdk/drag-drop'; import { MatSlideToggleChange } from '@angular/material'; import { LenderListComponent } from '../lender-list/lender-list.component'; +import { SelectionListViewComponent } from '../selection-list-view/selection-list-view.component'; @Component({ selector: 'app-question-view', templateUrl: './question-view.component.html', styleUrls: ['./question-view.component.scss'] }) export class QuestionViewComponent { + @ViewChild(SelectionListViewComponent) child:SelectionListViewComponent; section_name: any=[]; form_index: any=[]; visible: boolean; @@ -205,7 +207,8 @@ export class QuestionViewComponent { } - add(param){ + add(param,name,p_name){ + console.log(param) // localStorage.setItem('addquestion','') localStorage.removeItem('addquestion'); const dialogRef = this.dialog.open(ViewComponent, { @@ -221,9 +224,9 @@ export class QuestionViewComponent { let data = localStorage.getItem('addquestion') console.log(JSON.parse(data)) console.log(this.forms) - this.question.push(JSON.parse(data)) - - + param.push(JSON.parse(data)) + console.log(param); + this.drag_list(param,name,p_name) }); } @@ -336,7 +339,7 @@ console.log(s); } - drop(event: CdkDragDrop,child_name:any) { + drop(event: CdkDragDrop,child_name:any,data:any) { console.log(event) console.log(this.done) console.log(child_name) @@ -351,7 +354,7 @@ console.log(s); ); } - this.drag_list(this.done,child_name) + this.drag_list(data,child_name,child_name) } show(element){ @@ -619,22 +622,93 @@ check3(a,b){ return a; } } -drag_list(data, name){ +drag_list(data, name,p_name){ console.log(this.full_data) console.log(data) console.log(name) this.full_data.questions.forEach(element => { - if(element.question == name){ + if(element.question == name || element.question == p_name){ element if(element.onchange_properties instanceof Array && element.onchange_properties !=null){ if(element.onchange_properties[0] && element.onchange_properties[0].form_controls){ // console.log(element.onchange_properties[0].form_controls[0].questions); + if(element.question == name ){ element.onchange_properties[0].form_controls[0].questions = data } + + + if(element.onchange_properties[0].form_controls[0].questions instanceof Array ){ + + element.onchange_properties[0].form_controls[0].questions.forEach(v => { + console.log(v.question) + if( v.question instanceof Array){ + + + v.question.forEach(e => { + + + console.log(name) + if(e.question == name){ + console.log(e.question) + if(e.onchange_properties instanceof Array && e.onchange_properties !=null){ + if(e.onchange_properties[0] && e.onchange_properties[0].form_controls){ + + console.log(data) + // console.log(element.onchange_properties[0].form_controls[0].questions); + e.onchange_properties[0].form_controls[0].questions = data + } + } + } + + }); + } + }); + }else{ + console.log(element.question) + if(element.question == name ){ + element.onchange_properties[0].form_controls[0].questions = data + } + } + } } + }else{ + if(element.onchange_properties instanceof Array && element.onchange_properties !=null){ + if(element.onchange_properties[0] && element.onchange_properties[0].form_controls){ + + + console.log(element.onchange_properties[0].form_controls[0].questions); + //element.onchange_properties[0].form_controls[0].questions = data + + } + } + } + if(element.question instanceof Array){ + console.log(data) + element.question.forEach(g => { + console.log(g) + if(g.question == name){ + console.log(g) + if(g.onchange_properties instanceof Array ){ + console.log(g.onchange_properties); + if( g.onchange_properties[0].form_controls[0].questions instanceof Array){ + + + console.log(g.onchange_properties[0].form_controls[0].question); + if(g.question == name ){ + console.log(g.question) + console.log(data) + g.onchange_properties[0].form_controls[0].questions = data + } + } + } + + } + + }); + } }); @@ -656,13 +730,14 @@ drag_list(data, name){ let param = {"entity_id":entity_id,"product_id":product_id,"customer_segment_id":customer_segment,"map_id": map_id,"form_id": this.form_id, "json":this.full_data ,"form_status":form_status} // let formValues; console.log(param) - // console.log("worked") + console.log("worked") this.masterService.saveupdatejsondetails(param).subscribe( dataresult => { if (dataresult.status == 200) { console.log(dataresult); + this.notifier.notify('success', 'Your Changes Updated.!'); - + this.router.navigate(['../../', ], {relativeTo: this.route}); } else { this.notifier.notify('warning', 'Something Went Wrong Try Again.!'); @@ -703,7 +778,7 @@ drag_list(data, name){ if (dataresult.status == 200) { console.log(dataresult); this.notifier.notify('success', 'Your Changes Updated.!'); - + this.router.navigate(['../../', ], {relativeTo: this.route}); } else { this.notifier.notify('warning', 'Something Went Wrong Try Again.!'); @@ -720,6 +795,20 @@ drag_list(data, name){ + } + + check_disable(data){ + // console.log(data) + + if(data == true){ + return true + + }else if(data == 'undefined'){ + return false + }else{ + return false + } + } diff --git a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts index 892b69e93..dedfab60d 100644 --- a/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts +++ b/ng6-seed/src/app/template2/selection-list-view/selection-list-view.component.ts @@ -253,9 +253,13 @@ export class SelectionListViewComponent implements OnInit { console.log(details) console.log(index) let form_id = details.form_id; - let map_id = this.formvalue.template_lender_map_id; + // let map_id = this.formvalue.template_lender_map_id; + let map_id = details.map_id; let disabled = disable_key - + console.log(form_id) + console.log(map_id) + console.log(disabled) + this.masterService.disableform(form_id,map_id,disabled).subscribe( dataresult => { if (dataresult.status == 200) { diff --git a/ng6-seed/src/app/template2/view/view.component.html b/ng6-seed/src/app/template2/view/view.component.html index 350f4d4c8..75f9e31ba 100644 --- a/ng6-seed/src/app/template2/view/view.component.html +++ b/ng6-seed/src/app/template2/view/view.component.html @@ -119,7 +119,7 @@
- +
25% 50% @@ -127,7 +127,7 @@ 100%
- + {{ question.name }} diff --git a/ng6-seed/src/app/template2/view/view.component.ts b/ng6-seed/src/app/template2/view/view.component.ts index bcb787e59..0c6e05702 100644 --- a/ng6-seed/src/app/template2/view/view.component.ts +++ b/ng6-seed/src/app/template2/view/view.component.ts @@ -27,12 +27,14 @@ export class ViewComponent implements OnInit { depends_child: any=[]; Mandatory_checked = false; score_card: any=[]; + option_array: any=[]; public emailForm: FormGroup; public emailLabels = ['Home', 'Work', 'Other']; public validationMsgs = { 'emailAddress': [{ type: 'email', message: 'Enter a valid email' }] } show2: boolean; + show_api: boolean = false; constructor(@Inject(MAT_DIALOG_DATA) public data: any,private fb: FormBuilder,private dialog: MatDialog, private _formBuilder: FormBuilder) { console.log(this.data) this.data.data @@ -67,13 +69,15 @@ export class ViewComponent implements OnInit { this.dialoge_subcontent.push(this.data.form_name) this.EditQuestions = this.data.data; + if(this.data.valid !=null){ - if(!this.data.valid){ + + if(this.data.valid.length != 1){ this.Mandatory_checked = false; }else{ this.Mandatory_checked = true; } - + } console.log( this.EditQuestions) // this.questionsForm.controls.questions.setValue( this.data.data); //this.dialoge_content.push("This Question depends on another question") @@ -159,11 +163,17 @@ export class ViewComponent implements OnInit { // console.log( w) let w = this.userDetailsForm.value.question - if(w == "3" ||w == "4"){ + if(w == "3" ||w == "4" || w == "2"){ this.show =true }else{ this.show =false } + + if(w == "3" ||w == "4"){ + this.show_api =true + }else{ + this.show_api =false + } } @@ -213,6 +223,31 @@ export class ViewComponent implements OnInit { console.log( this.data.add); this.emailForm.get('emails') console.log(value); + + console.log( value.option); + let answer; + this.option_array =[]; + for(let i=0;i<=value.option.length-1;i++){ + this.option_array.push( { + "answer_id":value.option[i].option, + "answer":value.option[i].option, + }) + + + + + } + + console.log( this.option_array); + + this.option_array.forEach(element => { + + if(element.answer_id == ''){ + this.option_array = null + } + + }); + console.log( this.data.full_data); console.log( this.emailForm.get('emails')); console.log( this.data.form_name); @@ -233,20 +268,27 @@ export class ViewComponent implements OnInit { var names = value.Field var nameArr = names.split(','); + let tmp ; + if(value.api_name !=''){ + tmp ={ + "api":value.api_name, + "api_method":api, + "params":{ + "master_name": value.params + }, + "fields":[ + ''+nameArr[0]+'',''+nameArr[1]+'' + ] + } || null; + }else{ + tmp = null - let api_properties = { - "api":value.api_name, - "api_method":api, - "params":{ - "master_name": value.params - }, - "fields":[ - ''+nameArr[0]+'',''+nameArr[1]+'' - ] - } || null; + } +let q_key = question_key.toLowerCase(); + let api_properties = tmp let valid; console.log( this.Mandatory_checked ) - if( this.Mandatory_checked == true){ + if( this.Mandatory_checked == true ){ valid = [ { "name":"required", @@ -257,19 +299,34 @@ export class ViewComponent implements OnInit { } ] }else{ - valid = null; + valid = []; + if( value.mandatory == true){ + valid = [ + { + "name":"required", + "isactive":"1", + "validator":"Validators.required", + "message":"Field Required", + "value":null + } + ] + }else{ + valid = []; + } } + localStorage.setItem('question_edit_valid', JSON.stringify(valid)) - let json = {'answers':null, - "validations":valid, + let json = { + 'question':question, + 'question_key':q_key.split(' ').join('_'), + 'answers': this.option_array || null, + "validations":valid, 'api_properties': api_properties, 'disable': false, 'field_width': width, 'is_repeatable': null, 'required':value.mandatory, 'onchange_properties': Onchange, - 'question':question, - 'question_key':question_key, 'title': title, 'type': question_type, } diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json index 6bc8e6056..456727fcc 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/DONE/6.json @@ -37,8 +37,13 @@ "question_key":"Account_Holder_Name", "question":"Account Holder's Name", "place_holder":"Enter the text", - "type":"3", - "api_properties":null, + "type":"4", + "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, @@ -320,8 +325,13 @@ "question_key":"Account_Holder_name", "question":"Account Holder's Name", "place_holder":"Enter the text", - "type":"3", - "api_properties":null, + "type":"4", + "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, @@ -689,8 +699,38 @@ "field_width":"45", "validations":[ ] -} - + },{"answers": null, + "api_properties": null, + "disable": false, + "field_width": "75", + "is_repeatable": null, + "onchange_properties": null, + "question": "sample question", + "question_key": "sample_question", + "raw_validations": null, + "required": true, + "title": null, + "type": 1, + "validations": [] + + + }, + + { + "question_key":"sub_question", + "question":"sub question", + "place_holder":"Enter the text", + "type":"1", + "api_properties":null, + "answers":null, + "onchange_properties":null, + "is_repeatable":null, + "field_type":"string", + "field_width":"45", + "validations":[ + ] + } + ] } \ No newline at end of file diff --git a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json index b1b18c3c5..cf491140f 100644 --- a/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json +++ b/ng6-seed/src/assets/data/SMC_CREDIT_TEMPLATES/LFMP/1.json @@ -1,732 +1,2673 @@ { - "section_id":"13", - "section_name":"About Business", - "onsubmit":null, - "questions":[ - + "section_id": "13", + "section_name": "About Business", + "onsubmit": null, + "questions": [ { - "question": [ - { - "question":"Name", - "question_key":"name", - "type":"4", - "field_width":"45", - "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, - "validations":[ - - ] + "question": [ + { + "question": "Name", + "question_key": "name", + "type": "4", + "field_width": "45", + "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, + "validations": [] + }, + { + "question": "Share of Profit / Shareholding (%)", + "question_key": "Share of Profit / Shareholding (%)", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ { - "question":"Share of Profit / Shareholding (%)", - "question_key":"share_of_profit_shareholding", - "type":"1", - "field_width":"45", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Started Business", - "question_key":"started_business", - "type":"3", - "field_width":"45", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Started Business", + "question_key": "Started Business", + "type": "3", + "field_width": "45", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question_key":"no_of_years_in_current_business", - "question":"No of Years in Current Business", - "place_holder":"Enter the text", - "type":null, - "sub_title":"No of Years in Current Business", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"year", - "question":"Year", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"month", - "question":"Month", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - },{ - "question_key":"total_work_experience", - "question":"Total Work Experience (in years)", - "place_holder":"Enter the text", - "type":"1", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"30", - "validations":[ - ] - } - ], - "is_repeatable": "1", - "group_title": "Director Details", - "group_key": "director_details" - }, - { - "question": [ - { - "question":"Title", - "question_key":"title", - "type":"3", - "field_width":"25", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TITLES" - }, - "fields":[ - "title_id", - "name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } ] - }, { - "question":"Name", - "question_key":"name", - "type":"1", - "field_width":"25", - "answers":null, - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relation", - "question_key":"relation", - "type":"3", - "field_width":"25", - "answers":null, - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"RELATIONSHIPS" - }, - "fields":[ - "relationship_id", - "name" - ] - }, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relationship To", - "question_key":"relationship_to", - "type":"4", - "field_width":"25", - "answers":null, - "api_properties": - { - "purpose":"answer_options_local", - "master_name":"pd_applicants", - "fields":["pd_co_applicant_id","applicant_name"] - }, - - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - }, { - "question":"Relationship with Company", - "question_key":"relationship_with_company", - "type":"3", - "field_width":"25", - "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":"Field Required", - "value":null - } - ] - } , { - "question":"Started Busniess", - "question_key":"started_busniess", - "type":"3", - "field_width":"25", - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[ - { - "name":"required", - "isactive":"1", - "validator":"Validators.required", - "message":"Field Required", - "value":null - } - ] - } - ], - "is_repeatable": "1", - "group_title": "Add Other Family Members Involved In Business", - "group_key": "add_other_family_members_involved_in_business" - }, - - - - { - "question_key":"type_of_business_activity", - "question":"Type of Business Activity", - "place_holder":"Enter the text", - "type":"4", - "api_properties":{ - "api":"getListOfMaster", - "api_method":"POST", - "params":{ - "master_name":"TYPEOFACTIVITY" - }, - "fields":[ - "type_of_activity_id", - "name" - ] + }, + { + "question_key": "No of Years in Current Business", + "question": "No of Years in Current Business", + "place_holder": "Enter the text", + "type": null, + "sub_title": "No of Years in Current Business", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "question_key": "Year", + "question": "Year", + "place_holder": "Enter the text", + "type": "1", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "30", + "validations": [] + }, + { + "question_key": "Month", + "question": "Month", + "place_holder": "Enter the text", + "type": "1", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "30", + "validations": [] + }, + { + "question_key": "Total Work Experience (in years)", + "question": "Total Work Experience (in years)", + "place_holder": "Enter the text", + "type": "1", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "30", + "validations": [] + } + ], + "is_repeatable": "1", + "group_title": "Director Details", + "group_key": "Director Details" }, + { + "question": [ + { + "question": "Title", + "question_key": "Title", + "type": "3", + "field_width": "25", + "answers": null, + "api_properties": { + "api": "getListOfMaster", + "api_method": "POST", + "params": { "master_name": "TITLES" }, + "fields": ["title_id", "name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Name", + "question_key": "Name", + "type": "1", + "field_width": "25", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Relation", + "question_key": "Relation", + "type": "3", + "field_width": "25", + "answers": null, + "api_properties": { + "api": "getListOfMaster", + "api_method": "POST", + "params": { "master_name": "RELATIONSHIPS" }, + "fields": ["relationship_id", "name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Relationship To", + "question_key": "Relationship to", + "type": "4", + "field_width": "25", + "answers": null, + "api_properties": { + "purpose": "answer_options_local", + "master_name": "pd_applicants", + "fields": ["pd_co_applicant_id", "applicant_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Relationship with Company", + "question_key": "Relationship_with_Company", + "type": "3", + "field_width": "25", + "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": "Field Required", + "value": null + } + ] + }, + { + "question": "Started Busniess", + "question_key": "Started_Busniess", + "type": "3", + "field_width": "25", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + } + ], + "is_repeatable": "1", + "group_title": "Add Other Family Members Involved In Business", + "group_key": "Add Other Family Members Involved In Business" + }, + { + "question_key": "Type_of_Business_Activity", + "question": "Type of Business Activity", + "place_holder": "Enter the text", + "type": "4", + "api_properties": { + "api": "getListOfMaster", + "api_method": "POST", + "params": { "master_name": "TYPEOFACTIVITY" }, + "fields": ["type_of_activity_id", "name"] + }, "answers": null, - "onchange_properties":[{ - "purpose":"FORM_CTRL", - "form_controls":[ - { - "insert_index":"type_of_business_activity", - "expression":"(String('type_of_business_activity').includes('2'))", - "value_keys":[ - "type_of_business_activity" - ], - "questions":[ + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Type_of_Business_Activity", + "expression": "(('Type_of_Business_Activity').includes(2))", + "value_keys": ["Type_of_Business_Activity"], + "questions": [ { - "question":[ - - - { - "questions_level_two":[ - - { - "question":"Mobile Number", - "question_key":"mobile_no", - "type":"1", - "field_type":"num", - "field_width":"100", - "onchange_properties":null, - "api_properties":null, - "answers":null, - "is_repeatable":null, - "validations":[ - { - "name":"pattern", - "isactive":"1", - "validator":"[0-9]{10}", - "message":"Mobile number should be 10 digit", - "value":null + "question": [ + { + "question": "Main Product*", + "question_key": "Main Product", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Area of Sales*", + "question_key": "Area_of_Sales", + "type": "3", + "field_width": "45", + "answers": [ + { + "answer": "Within India", + "answer_id": "within_India" + }, + { "answer": "Export", "answer_id": "Export" }, + { "answer": "Both", "answer_id": "Both" } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('within_India'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Is_Pan_india", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('yes'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "question_key": "States_Where_Max_Sales_Done_for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "100", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_Pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('no'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + }, + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + } + ] } - ] - } - ], - "is_repeatable":"2", - "group_key":"mobile_numbers", - "group_title":"Mobile Number" - }, - - { - "question":"Relationship", - "question_key":"relationship", - "type":"1", - "field_width":"100", - "api_properties":null, - "answers":null, - "onchange_properties":null, - "is_repeatable":null, - "validations":[] + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Export'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Both'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Within India", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Within India", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "question_key": "is_Pan_India", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('yes'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "65", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('no'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "question_key": "Export", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Export", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + } + ], + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question_key": "Description of manufacturing process", + "question": "Description of manufacturing process", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + } + ], + "is_repeatable": "1", + "group_title": "Manufacturing", + "group_key": "Manufacturing" } - - - - ], - "is_repeatable":"1", - "group_key":"borrower_details", - "group_title":"Borrower Details" - } - - ] - } - ] - }], - - - "is_repeatable":null, - "field_type":"string", - "field_width":"100", - "validations":[ - ] - }, { - "question_key":"does_the_applicant_use_mobile_wallets_upi_apps", - "question":"Does the Applicant Use Mobile Wallets / UPI Apps", - "place_holder":"Enter the text", - "type":"3", - "sub_title":"Digital Payments", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, { - "question_key":"does_the_applicant_use_pos_machines_in_his_business_profession", - "question":"Does the Applicant Use POS Machines in His Business / Profession", - "place_holder":"Enter the text", - "type":"3", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - },{ - "question_key":"is_the_business_seasonal", - "question":"Is The Business Seasonal", - "place_holder":"Enter the text", - "type":"3", - "sub_title":"Digital Payments", - "api_properties":null, - "answers":[{ - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No Major Changes In Sales", - "answer_id":"No Major Changes In Sales" - }], - "onchange_properties":null, - "is_repeatable":null, - "field_type":"string", - "field_width":"65", - "validations":[ - ] - }, - { - "question":"Employees As Per Applicant", - "question_key":"employees_as_per_applicant", - "place_holder":"", - "type":null, - "sub_title":"Employees As Per Applicant", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Permanent", - "question_key":"permanent", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Temporary", - "question_key":"temporary", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Total", - "question_key":"total", - "place_holder":"", - "type":"1", - "field_width":"30", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Approximate total monthly salary paid to employees", - "question_key":"approximate_total_monthly_salary_paid_to_employees", - "place_holder":"", - "type":"1", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, - { - "question":"No of Employees Sighted By PD Officer During His Visit", - "question_key":"no_of_employees_sighted_by_pd_officer_during_his_visit", - "place_holder":"", - "type":null, - "sub_title":"No of Employees Sighted By PD Officer During His Visit", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Total", - "question_key":"total", - "place_holder":"", - "type":"1", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Was the Company name board sighted ?", - "question_key":"was_the_company_name_board_sighted", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" - }, - { - "answer":"No", - "answer_id":"no" - }], - "validations":[ - ] - } , - { - "question":"Documents Sighted", - "question_key":"documents_sighted", - "place_holder":"", - "type":null, - "sub_title":"Documents Sighted", - "field_width":"100", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers": null, - "validations":[ - ] - }, { - "question":"Shop and Est Act Cert", - "question_key":"shop_and_est_act_cert", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Type_of_Business_Activity", + "expression": "(('Type_of_Business_Activity').includes(5))", + "value_keys": ["Type_of_Business_Activity"], + "questions": [ + { + "question": [ + { + "question": "Main Product*", + "question_key": "Main Product", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Area of Sales*", + "question_key": "Area_of_Sales", + "type": "3", + "field_width": "45", + "answers": [ + { + "answer": "Within India", + "answer_id": "within_India" + }, + { "answer": "Export", "answer_id": "Export" }, + { "answer": "Both", "answer_id": "Both" } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('within_India'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Is_Pan_india", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('yes'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "question_key": "States_Where_Max_Sales_Done_for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "100", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_Pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('no'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + }, + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Export'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Both'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Within India", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Within India", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "question_key": "is_Pan_India", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('yes'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "65", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('no'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "question_key": "Export", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Export", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + } + ], + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question_key": "Description of manufacturing process", + "question": "Description of manufacturing process", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + } + ], + "is_repeatable": "1", + "group_title": "Service Provider ", + "group_key": "Service Provider" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Type_of_Business_Activity", + "expression": "(('Type_of_Business_Activity').includes(3))", + "value_keys": ["Type_of_Business_Activity"], + "questions": [ + { + "question": [ + { + "question": "Main Product*", + "question_key": "Main Product", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Area of Sales*", + "question_key": "Area_of_Sales", + "type": "3", + "field_width": "45", + "answers": [ + { + "answer": "Within India", + "answer_id": "within_India" + }, + { "answer": "Export", "answer_id": "Export" }, + { "answer": "Both", "answer_id": "Both" } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('within_India'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Is_Pan_india", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('yes'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "question_key": "States_Where_Max_Sales_Done_for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "100", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_Pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('no'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Export'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Both'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Within India", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Within India", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "question_key": "is_Pan_India", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('yes'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "65", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('no'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "question_key": "Export", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Export", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + } + ], + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question_key": "Description of manufacturing process", + "question": "Description of manufacturing process", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + } + ], + "is_repeatable": "1", + "group_title": "Retail trading ", + "group_key": "Retail trading" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Type_of_Business_Activity", + "expression": "(('Type_of_Business_Activity').includes(4))", + "value_keys": ["Type_of_Business_Activity"], + "questions": [ + { + "question": [ + { + "question": "Main Product*", + "question_key": "Main Product", + "type": "1", + "field_width": "45", + "answers": null, + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question": "Area of Sales*", + "question_key": "Area_of_Sales", + "type": "3", + "field_width": "45", + "answers": [ + { + "answer": "Within India", + "answer_id": "within_India" + }, + { "answer": "Export", "answer_id": "Export" }, + { "answer": "Both", "answer_id": "Both" } + ], + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('within_India'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Is_Pan_india", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('yes'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "question_key": "States_Where_Max_Sales_Done_for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "100", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_Pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Is_Pan_india", + "expression": "(String('Is_Pan_india') == String('no'))", + "value_keys": ["Is_Pan_india"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Is_pan_india", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Export'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "Area_of_Sales", + "expression": "(String('Area_of_Sales') == String('Both'))", + "value_keys": ["Area_of_Sales"], + "questions": [ + { + "question_key": "Within India", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Within India", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "question_key": "is_Pan_India", + "question": "Is Pan India", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": [ + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('yes'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "65", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + }, + { + "purpose": "FORM_CTRL", + "form_controls": [ + { + "insert_index": "is_Pan_India", + "expression": "(String('is_Pan_India') == String('no'))", + "value_keys": ["is_Pan_India"], + "questions": [ + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + }, + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "State", + "question_key": "State", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "State", + "group_title": "State" + }, + { + "questions_level_two": [ + { + "question": "city", + "question_key": "city", + "type": "3", + "field_type": "num", + "field_width": "100", + "onchange_properties": null, + "api_properties": null, + "answers": null, + "is_repeatable": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "city", + "group_title": "city" + }, + { + "question_key": "States Where Max Sales Done for ", + "question": "States Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + }, + { + "question_key": "Cities Where Max Sales Done for ", + "question": "Cities Where Max Sales Done for ", + "type": "4", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "params": { + "master_name": null + }, + "fields": [ + "state_id", + "state_name" + ] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "is_Pan_India", + "answers": null, + "validations": [] + } + ] + } + ] + } + ], + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "question_key": "Export", + "question": "Within India", + "place_holder": "Enter the text", + "type": null, + "sub_title": "Export", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + }, + { + "questions_level_two": [ + { + "question_key": "Countries_Where_The_Export_Is_Being_Done_for", + "question": "Countries Where The Export Is Being Done for ", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + }, + { + "question_key": "Out_of_Total_Export_Sales_what_of_Sales_is_done_in", + "question": "Out of Total Export Sales what % of Sales is done in", + "type": "3", + "field_width": "45", + "api_properties": { + "api": "getListOfStatesCities", + "api_method": "POST", + "fields": ["state_id", "state_name"] + }, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "parent_question_key": "Area_of_Sales", + "answers": null, + "validations": [] + } + ], + "is_repeatable": "2", + "group_key": "Countries", + "group_title": "Countries" + } + ] + } + ] + } + ], + "is_repeatable": null, + "validations": [ + { + "name": "required", + "isactive": "1", + "validator": "Validators.required", + "message": "Field Required", + "value": null + } + ] + }, + { + "question_key": "Description of manufacturing process", + "question": "Description of manufacturing process", + "place_holder": "Enter the text", + "type": "7", + "api_properties": null, + "answers": null, + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] + } + ], + "is_repeatable": "1", + "group_title": "Wholesale Trade", + "group_key": "Wholesale Trade" + } + ] + } + ] + } + ], + "is_repeatable": null, + "field_type": "string", + "field_width": "100", + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"GST Regn Cert", - "question_key":"gst_regn_cert", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + { + "question_key": "Does the Applicant Use Mobile Wallets / UPI Apps", + "question": "Does the Applicant Use Mobile Wallets / UPI Apps", + "place_holder": "Enter the text", + "type": "3", + "sub_title": "Digital Payments", + "api_properties": null, + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "65", + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"Cert of Practice", - "question_key":"cert_of_practice", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + { + "question_key": "Does the Applicant Use POS Machines in His Business / Profession", + "question": "Does the Applicant Use POS Machines in His Business / Profession", + "place_holder": "Enter the text", + "type": "3", + "api_properties": null, + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "65", + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"PF Regn", - "question_key":"pf_regn", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + { + "question_key": "Is The Business Seasonal", + "question": "Is The Business Seasonal", + "place_holder": "Enter the text", + "type": "3", + "sub_title": "Digital Payments", + "api_properties": null, + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { + "answer": "No Major Changes In Sales", + "answer_id": "No Major Changes In Sales" + } + ], + "onchange_properties": null, + "is_repeatable": null, + "field_type": "string", + "field_width": "65", + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"ESIC Regn", - "question_key":"esic_regn", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + { + "question": "Employees As Per Applicant", + "question_key": "Employees As Per Applicant", + "place_holder": "", + "type": null, + "sub_title": "Employees As Per Applicant", + "field_width": "100", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - }, { - "answer":"Not Applicable", - "answer_id":"Not Applicable" - }], - "validations":[ - ] - } , { - "question":"Do You Want to Add Other Documents?", - "question_key":"do_you_want_to_add_other_documents", - "place_holder":"", - "type":"3", - "field_width":"45", - "api_properties":null, - "onchange_properties":null, - "is_repeatable":null, - "is_subfield":"1", - "answers":[{ - - "answer":"Yes", - "answer_id":"yes" + { + "question": "Permanent", + "question_key": "Permanent", + "place_holder": "", + "type": "1", + "field_width": "30", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] }, - { - "answer":"No", - "answer_id":"no" - } ], - "validations":[ - ] - }, { - "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":[ - ] - } - ] -} + { + "question": "Temporary", + "question_key": "Temporary", + "place_holder": "", + "type": "1", + "field_width": "30", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "Total", + "question_key": "Total", + "place_holder": "", + "type": "1", + "field_width": "30", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "Approximate total monthly salary paid to employees", + "question_key": "Approximate total monthly salary paid to employees", + "place_holder": "", + "type": "1", + "field_width": "100", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "No of Employees Sighted By PD Officer During His Visit", + "question_key": "No of Employees Sighted By PD Officer During His Visit", + "place_holder": "", + "type": null, + "sub_title": "No of Employees Sighted By PD Officer During His Visit", + "field_width": "100", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "Total", + "question_key": "total", + "place_holder": "", + "type": "1", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "Was the Company name board sighted ?", + "question_key": "Was the Company name board sighted ?", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "question": "Documents Sighted", + "question_key": "Documents Sighted", + "place_holder": "", + "type": null, + "sub_title": "Documents Sighted", + "field_width": "100", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": null, + "validations": [] + }, + { + "question": "Shop and Est Act Cert", + "question_key": "Shop and Est Act Cert", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" }, + { "answer": "Not Applicable", "answer_id": "Not Applicable" } + ], + "validations": [] + }, + { + "question": "GST Regn Cert", + "question_key": "GST Regn Cert", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" }, + { "answer": "Not Applicable", "answer_id": "Not Applicable" } + ], + "validations": [] + }, + { + "question": "Cert of Practice", + "question_key": "Cert of Practice", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" }, + { "answer": "Not Applicable", "answer_id": "Not Applicable" } + ], + "validations": [] + }, + { + "question": "PF Regn", + "question_key": "PF Regn", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" }, + { "answer": "Not Applicable", "answer_id": "Not Applicable" } + ], + "validations": [] + }, + { + "question": "ESIC Regn", + "question_key": "ESIC Regn", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" }, + { "answer": "Not Applicable", "answer_id": "Not Applicable" } + ], + "validations": [] + }, + { + "question": "Do You Want to Add Other Documents?", + "question_key": "Do You Want to Add Other Documents?", + "place_holder": "", + "type": "3", + "field_width": "45", + "api_properties": null, + "onchange_properties": null, + "is_repeatable": null, + "is_subfield": "1", + "answers": [ + { "answer": "Yes", "answer_id": "yes" }, + { "answer": "No", "answer_id": "no" } + ], + "validations": [] + }, + { + "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": [] + } + ] + } + \ No newline at end of file