Remove All Non-Alphanumeric Characters From an Answer
By default, users can enter almost any character in an answer for a Text variable. Sometimes, you may want to force users to enter only alphanumeric characters (letters and numbers only). The following computation examines the user's answer for a Text variable character by character, and if it finds anything other than a letter, number, or space, that character is removed from the answer.
The number of repetitions of the WHILE loop is based on the number of characters in the answer for the Text Var variable. Therefore, you must ensure that your template's Maximum WHILE iterations limit is large enough to process the answer. (You can specify this limit at the Component File Properties dialog box.)