> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Filter: Allow only letters and digits

> Allows only letters and digits; removes all other characters.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Allows only letters and digits; removes all other characters. Spaces, punctuation, symbols and underscores are all stripped out, leaving a clean run of letters and numbers. Use this to tidy up a value into a safe code, for example turning a messy product name or reference into a key with no special characters. Only plain, unaccented letters are kept; accented letters such as é or ü are treated as special characters and removed.

This documentation describes: [Schema](/schemas/mapper/string-filter-alnum)

## Fields

This step has no settings. It takes the value it is pointed at and returns it with every character that is not a letter or a digit removed.

## Sample data

| Field  | Value                     |
| ------ | ------------------------- |
| (none) | This step has no settings |

Input:

```json theme={null}
{ "sku": "WOOL SCARF #01 (red)" }
```

Output:

```json theme={null}
{ "sku": "WOOLSCARF01red" }
```

```json Configuration theme={null}
{
  "prototype": "string-filter-alnum",
  "parameters": {}
}
```
