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

# Is valid URL

> Checks if the value is a valid URL.

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

Checks whether the incoming value is a valid web address. A value passes when it is a complete, well-formed URL, for example `https://www.alumio.com/docs`. Use this to confirm a link or endpoint field is usable before you follow it or pass it on, or to route records with a missing or broken address down a different path. By default any scheme is accepted; set one or more Schemes to require the address to start with a specific one, such as only allowing `https`. The check looks at the shape of the address only; it does not open the link or confirm the page exists.

This documentation describes: [Schema](/schemas/condition/format-url)

## Fields

<FormField property="schemes" label="Schemes">
  A list of allowed schemes the address has to start with (the part before `://`, such as `https` or `ftp`). When you add one or more, only addresses using one of those schemes pass; for example listing only `https` rejects an `http://` link. Leave it empty to accept any scheme.
</FormField>

## Sample data

The condition was run against a link field with no schemes set, so any scheme is accepted.

| Incoming value                | Result         |
| ----------------------------- | -------------- |
| `https://www.alumio.com/docs` | Matches        |
| `www.alumio.com`              | Does not match |

```json Configuration theme={null}
{
  "prototype": "format-url",
  "parameters": {}
}
```
