If you are referring to the DataMatrix barcode symbology associated with the PaperFormsBarcode object, the formatting and content of the value encoded in a barcode depends upon the requirements on the 'back-office' side. In other words, a process consumes the data after the paper form is scanned and a barcode is decoded. You should map the barcode in the form to the data requirements in that process, whatever that process may be.<br /><br />The following custom script on a barcode calculate event will capture the relative form fields and encode the barcode as XML. The script replaces automatic scripting.<br /><br />form1.page1.subform1.barcode::calculate - (application/x-javascript, client)<br /><br />var str = '<?xml version="1.0"?>' <br />+ "<customer>"<br />+ "<name>" + form1.page1.subform1.name.rawValue + "</name>"<br />+ "<city>" + form1.page1.subform1.city.rawValue + "</city>"<br />+ "<state>" + form1.page1.subform1.state.rawValue + "</state>"<br />+ "<zipCode>" + form1.page1.subform1.zipCode.rawValue + "</zipCode>"<br />+ "</customer>";<br /> <br />this.rawValue = str;<br /><br />Steve