Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Java Script Error - Please Help

$
0
0

Hi,

I have written the code below to take the values of two Text fields, put them together and remove spaces, but it comes up with an error;

FRN 123456

Postcode E1 1XX

Would equal BranchID 123456E11XX and be populated into another field,

function updatebranchid()

{

// Gets Values from the FRN Field and Postcode

var FRN = Xrm.Page.getAttribute("liss_frnno").getValue();

var Postcode = Xrm.Page.getAttribute("address1_postalcode").getValue();

// Combines the FRN and Postcode

Var FRNPostcode = FRN + Postcode

// Removes the Spaces

Var BranchID = FRNPostcode.replace(" ","")

// Populates LVBranchID

Xrm.Page.getAttribute("liss_lvbranchid").setValue(BranchID);

}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>