Published on : May 26, 2020
Sample Call
[do.@cmr]
[cmr-service.address-info-controller.default_response_controller /]
[/do.@cmr]
Input
Key | Description | Sample Value |
@cmr.step_config.events.launch | Array of events to call at launch of screen | [flow category=”” action=”” label=”” /] [section category=”” action=”” label=”” /] [step category=”” action=”” label=”” /] [lapp_journey category=”” action=”” label=”” /] |
@cmr.lapp.home_addr_line1 | Address Line 1 of applicant’s current address | 104, Kalyani Nagar |
@cmr.lapp.home_addr_line2 | Address Line 2 of applicant’s current address | Pune |
@cmr.lapp.home_pincode | Selected pin code of the applicant’s residence | 411006 |
@cmr.response_content.fields. current_address.label | Current Address label | Address Line 1 |
@cmr.response_content.fields. current_address.placeholder | Current Address Placeholder | Address Line 1 |
@cmr.response_content.fields. pincode.label | Current Address Pincode Label | Pincode |
@cmr.response_content.fields. pincode.placeholder | Current Address Pincode Placeholder | Pincode |
@cmr.response_content.title | Header – Title of the screen | Residence Information |
@cmr.response_content.desc | Header – Description of the screen | We require the residence details for contactibility |
Output

Logic
- Create Events Array
- Fire Google Analytics Array
[cmr-service.events.ga_events data="{@cmr.events_data}" /]
- Fetch existing data from the @cmr.lapp
- Generate Form
- Add javascript function to validate form and change listners
function validateForm(){
if( $("input[name=current_address_line1]").val()=='' ||
$("input[name=pincode]").val()=='' ||
$("input[name=confirm_address]").val() == ''
){
$(".continue-btn-residence-details").addClass("disabled");
} else{
$(".continue-btn-residence-details").removeClass("disabled");
}
}$(' input[name=current_address_line1], input[name=current_address_line2], input[name=pincode], input[name=confirm_address]').change(function(){
validateForm();
});