Hi all,
Was wondering if anyone could help me with this. I have a basic form to collect data which collects UK vehicle registration numbers. At the moment my form just stores this as normal text but I’d like it to format the text in a certain format (ie the way registrations are displayed - at the moment it’s FG10JKP and I’d like it to store it with a space after the fourth character FG10 JKP regardless of how the user entered it.
The next thing I want to achieve is to not apply this change if the registration is a private plate. IE - J3GGS I wouldn’t want the space added to it. The only way I can think of this is to check if the 3rd & 4th character were a number (10) then to proceed it with a space.
Would anyone be able to point me in the right direction I’ve been trying for hours