Currently this is the method that is executed when the new address is saved: <pre lang="Javascript">addressSubmitted(form: FormGroup) { if(form.valid){ var addressLine1 = form.controls['address'].value; var addressLine2 = form.controls['address2'].value; addressLine2 = addressLine2.trim(); var city = form.controls['city'].value; var stateId = form.controls['state'].value; var state = this.SelectedState; //form.controls['state'].find() var postalCode = form.controls['zip'].value; var fullAddress = addressLine1 + ', '; if('' != addressLine2){ fullAddress = fullAddress + addressLine2 + ', '; } fullAddress = fullAddress + city + ', ' + state + ' ' + postalCode -->this.popupForm.controls['address_select'].xxxx; } else{ this.servicePNotify.error("Error","New address information is not complete"); this.service.validateAllFormFields(form); }
popupForm
address_select
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)