Data Sub String
Hello,
I am new to IForm and am looking for some help.
I am trying to get a sub string from a barcode. I currently have this setup as a number field on the form (barcode). I then need to do the following
1. Get the first 6 numbers out of this field and call them "Order Number"
2. Get the next 3 numbers and call them "Qty"
3. Get the next 2 number and call them "Line"
I tried creating a number field called order_number and include (barcode.substring(0,2)) in the Dynamic Value but it didnt work. Any help would be greatly appreciated.
-
Hi Brent,
Welcome to iForm. When using the barcode you probably need to make sure you're manipulating the raw scanned value. If `barcode` is the name of your scanning element then try using `barcode.raw.substring(0,2)`. Check out this article for more details on the Manatee element: https://iformbuilder.zendesk.com/hc/en-us/articles/201715214-Classic-Builder-Manatee-Element
Hope it helps!
Please sign in to leave a comment.
Comments
2 comments