This will get you the fourth char in a string called "str":
Thanks to both of you, the substr. function worked.
As a followup question how do i set the action for the text field to afterupdate or lose focus?
I tried setting the action to mouse exit, but that has not worked.
I need the event to trigger after the user has updated the text field.
Thanks for the help,
was able to work out my second question. Added the script call to the calculate action of the field being updated.