Method

toAlphanumericFormat a string or set of characters into alphanumeric characters only.

Description

Alphanumeric is a term that includes all the letters in a given language set and the numerals. The alphanumeric characters are those comprised by the combined set of the 26 alphabetic characters, from A to Z, and the 10 Arabic numerals, from 0 to 9.

Minimum number of  arguments for this method is one.

Structure of the method:

toAlphanumeric(value)

Parameters

value— A set of characters to be converted in alphanumeric

Examples

In the example below, convert a string to alphanumeric. We see that it has stripped spaces and special characters  by allowing only letters and numbers

//Convert a string to alphanumeric
Hello {{first_name}},

{%set result = toAlphanumeric('This is my 5th sentence for today!')%} 
{{result}}

//Output: thisismy5thsentencefortoday

To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy.