Remove All Spaces From an Answer
When a user answers a Text variable in the interview, unless the variable has a pattern attached to it, the user can type almost anything in the box. As the template developer, you may want to alter the user's answer to remove certain characters, such as spaces. For example, if a user is prompted to enter an account number, you may want to remove all spaces from the answer.
The following computation uses a WHILE loop (available in HotDocs 6.2 and later) to look at the user's answer, character by character, to see if there are spaces in the answer. If so, HotDocs modifies the answer to remove the spaces.