diff --git a/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype.md b/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype.md
index 2b2ccc72e95..49f9a2f0679 100644
--- a/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype.md
+++ b/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype.md
@@ -160,3 +160,106 @@ To reference the file you should override the `RenderView` property, e.g.:
```csharp
public override string RenderView => "~/App_Plugins/UmbracoFormsCustomFields/backoffice/Common/RenderTypes/mycustomrenderfield.html";
```
+
+## Validation
+
+If using [jQuery validate](https://jqueryvalidation.org/) it is possible to use various methods in a custom field type, e.g. `equalTo`, `digits` or `remote`.
+
+For example a Compare field type to compare another field.
+
+```csharp
+public class CompareField : Umbraco.Forms.Core.FieldType
+{
+ public CompareField()
+ {
+ this.Id = new Guid("b83dddc2-bdf3-4a0b-b9ad-f7bba83080df");
+ this.Name = "Compare field";
+ this.Description = "Compare input to another field.";
+ this.Icon = "icon-legal";
+ this.FieldTypeViewName = "FieldType.Compare.cshtml";
+ this.DataType = FieldDataType.String;
+ this.SortOrder = 20;
+ this.SupportsRegex = true;
+ }
+
+ [Setting("Field to compare",
+ Description = "Alias of field to compare.",
+ View = "textfield")]
+ public string FieldToCompare { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether the field label should be shown.
+ /// PreValues are a single element, a boolean indicating whether the default for the the checkbox is "checked".
+ ///
+ [Setting("Show Label", Description = "Indicate whether the field's label should be shown when rendering the form.", View = "checkbox", PreValues = "true", DisplayOrder = 20)]
+ public string ShowLabel { get; set; } = string.Empty;
+
+ ///
+ public override bool HideLabel => ShowLabel == "False"; // Checking explicitly for false so the backward compatible default is to show the label.
+
+ public override string GetDesignView() =>
+ "~/App_Plugins/UmbracoForms/backoffice/Common/FieldTypes/Textfield.html";
+
+ public override IEnumerable ValidateField(Form form, Field field, IEnumerable