Published on : May 26, 2020

Sample Call

[do.@cmr]
[cmr-service.address-info-controller.default_response_controller /]
[/do.@cmr]

Input

KeyDescriptionSample 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_line1Address Line 1 of applicant’s current address104, Kalyani Nagar
@cmr.lapp.home_addr_line2 Address Line 2 of applicant’s current addressPune
@cmr.lapp.home_pincodeSelected pin code of the applicant’s residence411006
@cmr.response_content.fields.
current_address.label
Current Address labelAddress Line 1
@cmr.response_content.fields.
current_address.placeholder
Current Address PlaceholderAddress Line 1
@cmr.response_content.fields.
pincode.label
Current Address Pincode LabelPincode
@cmr.response_content.fields.
pincode.placeholder
Current Address Pincode PlaceholderPincode
@cmr.response_content.title Header – Title of the screenResidence Information
@cmr.response_content.descHeader – Description of the screenWe 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();
});