diff --git a/ng6-seed/src/app/app.module.ts b/ng6-seed/src/app/app.module.ts index ba8f4977d..cb7d5230c 100755 --- a/ng6-seed/src/app/app.module.ts +++ b/ng6-seed/src/app/app.module.ts @@ -2,7 +2,7 @@ import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterModule } from '@angular/router'; import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpModule, Http } from '@angular/http'; import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS} from '@angular/common/http'; @@ -64,6 +64,11 @@ import { VideoChatComponent } from './video-chat/video-chat.component' 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'; @@ -87,9 +92,10 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { AdminLayoutComponent, AuthLayoutComponent, NewPasswordDialog,ForgotPass,ChangePasswordDialog, RoleMenuItemsPipe, HttpLoaderComponent, - IncomingCallComponent, VideoChatComponent + IncomingCallComponent, VideoChatComponent, DynamicNotifyComponent, ], imports: [ + ReactiveFormsModule, MatDialogModule, BrowserModule, BrowserAnimationsModule, @@ -116,6 +122,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { MatFormFieldModule, HttpClientModule, ResizableModule, + TranslateModule.forRoot({ loader: { provide: TranslateLoader, @@ -151,7 +158,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { }, MessagingService, AsyncPipe,LoaderService ], - entryComponents: [NewPasswordDialog,ForgotPass,ChangePasswordDialog] + entryComponents: [NewPasswordDialog,ForgotPass,ChangePasswordDialog,DynamicNotifyComponent] // IncomingCallComponent,VideoChatComponent,], ,bootstrap: [AppComponent] }) diff --git a/ng6-seed/src/app/layouts/admin/admin-layout.component.html b/ng6-seed/src/app/layouts/admin/admin-layout.component.html index 4dec3576a..5e469ea7c 100755 --- a/ng6-seed/src/app/layouts/admin/admin-layout.component.html +++ b/ng6-seed/src/app/layouts/admin/admin-layout.component.html @@ -128,11 +128,12 @@
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 4caae2c42..bf9e66fe6 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 @@ -1091,8 +1091,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/settings/service/user.service.ts b/ng6-seed/src/app/settings/service/user.service.ts index 5de771381..731428378 100755 --- a/ng6-seed/src/app/settings/service/user.service.ts +++ b/ng6-seed/src/app/settings/service/user.service.ts @@ -252,5 +252,16 @@ getvendorlist(){ return this.http.get(apiurl+'getSMCVendorList') } + + + +getListPDOfficersForNotification(){ + return this.http.get(apiurl+'getListPDOfficersForNotification/') +} +sendNotificationToOfficers(configdata){ + + return this.http.post(apiurl + "sendNotificationToOfficers",configdata); +} + } 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/lender-product-seg-mapping/lender-product-seg-mapping.component.ts b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts index 4941450a9..844ae703a 100644 --- a/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts +++ b/ng6-seed/src/app/template2/lender-product-seg-mapping/lender-product-seg-mapping.component.ts @@ -265,7 +265,7 @@ export class LenderProductSegMappingComponent implements OnInit { // console.log(formValues) if (!this.checkDuplicateInObject(formValues.temp_lender)) { console.log("worked") - this.masterService.savedetails(formValues).subscribe( + this.masterService.savedetails(params).subscribe( dataresult => { if (dataresult.status == 200) { console.log(dataresult); diff --git a/ng6-seed/src/app/template2/master.service.ts b/ng6-seed/src/app/template2/master.service.ts index 1245ea743..87940985b 100644 --- a/ng6-seed/src/app/template2/master.service.ts +++ b/ng6-seed/src/app/template2/master.service.ts @@ -101,7 +101,7 @@ private apiUrl = environment.apiEndpoint; } savedetails(formValues: any): Observable{ - return this._http.post(this.apiUrl + "saveTemplateMappingDetailsV2", {"records":{"entity_id":"5","product_id":formValues.temp_lender[0].fk_product_id,"customer_segment_id":formValues.temp_lender[0].fk_customer_segment}} ); + return this._http.post(this.apiUrl + "saveTemplateMappingDetailsV2",formValues ); } getLenderMasterListDetails(): Observable { return this._http.get(this.apiUrl + "getListOfLenders"); 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