# How to create a Custom Validation Formula for Inputs

{% hint style="info" %}
Savvy provides validation formulas for the most common use-cases, but sometimes our project needs some extra validations that we need to customize for ourselves.&#x20;
{% endhint %}

### Step 1

Mark the input as `Required` and select `Custom` as `Validation Formula`

![](https://1421794749-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MaGcfSakhqdHaWyb0T_%2F-MlVT2hIFmRFl_i8_GDZ%2F-MlVUNBjwg90krlvCA99%2Fcustom_validation_formula.png?alt=media\&token=34c4a77f-3edb-4f1f-bf2b-7cd0b4e0de3d)

### Step 2: Creating the Custom Validation Formula

Press the `Generate Sample Code` button with a formula that fulfills your needs of validation.

```
function validate(value) {
  return value ? true : false
}
```
