dbustin Posted November 5, 2014 Share Posted November 5, 2014 I know I have used a rule like this before, but can't seem to find it. I have a Zip code field that has either 12345 or 12345-2222. I need a rule to delete the numbers after the hyphen or just use the first 5 characters. Any help? Thanks! Quote Link to comment Share on other sites More sharing options...
step Posted November 5, 2014 Share Posted November 5, 2014 You can use the first 5 characters like so: return Left(Field("zip"),5); You can replace the dash and anything that comes after it: return Field("zip").replace(/-.*$/,''); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.