> ## 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.

# String: Prepend

> Prepends a value onto a string.

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>;
};

Adds a fixed piece of text to the front of a value. Use this when you need to put something at the start of a field, such as a prefix on a product code, a currency symbol before an amount, or a base path before a file name. Whatever you type in the field below is placed exactly as written, right before the existing value, with nothing added in between.

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

## Fields

<FormField property="prepend" label="Prepend" required>
  The text to add to the front of the value. It is added exactly as you type it, so include any separator you want (for example a trailing dash or space) as part of this text. You can also pull in data with [placeholders](/references/placeholders), such as `&{brand.code}-`.
</FormField>

## Sample data

| Field   | Value    |
| ------- | -------- |
| Prepend | `SHIRT-` |

Input:

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

Output:

```json theme={null}
{ "sku": "SHIRT-001" }
```

```json Configuration theme={null}
{
  "prototype": "string-prepend",
  "parameters": {
    "prepend": "SHIRT-"
  }
}
```
