---
title: "How to add custom validation with error message in knockout.js form validation?"  
description: "How to add custom validation with error message in knockout.js form validation?"  
author: "Sandra Emily"  
published: 2024-05-28  
updated: 2024-05-28  
canonical: https://www.mindstick.com/forum/160670/how-to-add-custom-validation-with-error-message-in-knockout-js-form-validation  
category: "knockcout js"  
tags: ["form validation", "knockout.js"]  
reading_time: 1 minute  

---

# How to add custom validation with error message in knockout.js form validation?

How to add [custom validation](https://www.mindstick.com/forum/1973/custom-validation-attribute) with [error message](https://www.mindstick.com/forum/23174/error-message-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration) in [knockout.js](https://www.mindstick.com/forum/160797/conditional-html-heading-tag-based-on-variable-in-knockout-js) [form validation](https://www.mindstick.com/forum/158694/how-can-perform-form-validation-using-jquery)?


---

Original Source: https://www.mindstick.com/forum/160670/how-to-add-custom-validation-with-error-message-in-knockout-js-form-validation

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
