I have one field for SSN or EIN number. The xml output needs to be in either 123-45-6789 or 12-3456789 format depending on if the entity is a person or a business. I have a couple other fields I can likely use to trigger one format over the other but I'm not sure if I can selectively format one field multiple ways.
Is this possible and if so, does anyone have a sample or script that could do this?
I do know that I could display messages, validations and such to the field but it would be a better user experience if it was formatted on the way out that way the users could enter the data any way they were comfortable. Thanks for any suggestions!