I have a form for data collection and one text input field is for tracking numbers. I use a barcode scanner to scan shipping labels as an easy way to capture the tracking number. Then I paste the number into that field. However, this one particular type of shipping label, from FedEx, adds the form number to the end of the tracking number.
Is there a way to use JavaScript or JQuery to check the input, right after it is pasted, and remove the last four characters if they are '0663'? Can someone provide a sample if this is possible?