# \#validation-hook

**URL:** https://forum.builder.io/tag/validation-hook/59.md

[Latest](https://forum.builder.io/latest.md) · [Categories](https://forum.builder.io/categories.md) · [Tags](https://forum.builder.io/tags.md)

---

## [Can I trigger validation hooks on URL changes?](https://forum.builder.io/t/can-i-trigger-validation-hooks-on-url-changes/16102)

<div class="topic-metadata">

**Author:** [@RudyF](https://forum.builder.io/u/RudyF)\
**Replies:** 1\
**Last updated:** [September 24, 2026, 8:09pm UTC](https://forum.builder.io/t/can-i-trigger-validation-hooks-on-url-changes/16102 "2026-09-24T20:09:52Z")

</div>

What are you trying to accomplish I’m trying to set up a validation hook so page URLs can’t have spaces in them. I was able to get my validation hook to consider the URL by working off the solution in “ Validation hook…

---

## [Using Validation Hooks to set enums of other fields](https://forum.builder.io/t/using-validation-hooks-to-set-enums-of-other-fields/14471)

<div class="topic-metadata">

**Author:** [@jhs129](https://forum.builder.io/u/jhs129)\
**Replies:** 5\
**Last updated:** [May 22, 2025, 10:15am UTC](https://forum.builder.io/t/using-validation-hooks-to-set-enums-of-other-fields/14471 "2025-05-22T10:15:15Z")

</div>

I am trying to use the tags input type but have the enum that drives the list of valid values for the tags. My idea is to have another field that is a reference input type that references another content model that has…

---

## [Data Model - Validation hook that checks for duplicate URL in list of MenuItems](https://forum.builder.io/t/data-model-validation-hook-that-checks-for-duplicate-url-in-list-of-menuitems/4533)

<div class="topic-metadata">

**Author:** [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Replies:** 0\
**Last updated:** [November 24, 2023, 4:57pm UTC](https://forum.builder.io/t/data-model-validation-hook-that-checks-for-duplicate-url-in-list-of-menuitems/4533 "2023-11-24T16:57:20Z")

</div>

Example of a validation hook code to check for duplicate URLs in a list of menu items. async function run() { // Initialize error flag let error = false; // Get the list of menu items from the content model data …
