Hello,
please help me ! I want to do the following:
I have 3 fields in my document: qrcode (=QRfield) firstname (=Textfield) lastname (=Textfield)
qrcode field recognizes a qr code from a document.
firstname & lastname are just fields which are not connected to recognition but they exist.
Only qr field is recongized. After qr field is recognized I want to parse the text in it and distribute it to the text fields "firstname" and "lastname".
How do I do that ? I guess over a script on the qr field. But how would it look like ?
Pleasr help me, I'm a newbie...
E.g. qrfield would look like after recognition: "firstname lastname Mike Douglas"
And parallel it should interprete it and fill firstname text field with "Mike" and lastname field with "Douglas".
Can someone give me a script example ? And where to insert it in FlexiCapture 1x ?
Many many thanks, Martin
Comments
1 comment
Your script (JScript) will look something like:
name = this.Field("qr").Text;
var array = name.split(' ');
this.Field("firstname").Text = array[0];
this.Field("lastname").Text = array[1];
But it will better have a look a project. Could you please share your project with us?
Please sign in to leave a comment.