I discovered how to create an action, but it's still not clear to me. I've gotten to the point where when you enter the credit card information into the field, it encrypts is as a bunch of characters.
Yes the action that you described is by design and function that way. Please find the enclosed screen shot of the encrypted field that I created as an example.
I want it encrypted showing only the last 4 digits or the credit card number (ex ************9086).
You can create an action set to do exactly what you want, but our encrypt/decrypt action will not do this by itself. You will need to build an customized action set to retrieve the information (if the logged in user is not an admin), encrypt the information and produce the desired result (ex ************9086, this will require several character function actions to get it the way you would want) back to the field. I hope this will point you in the right direction
Please let me know if I can be of further assistance.