# Как добавить минимальное или максимальное значение в пользовательские поля?

**URL:** https://meta.discourse.org/t/how-to-add-min-or-max-values-in-custom-fields/182482
**Category:** Support
**Tags:** user-custom-fields
**Created:** [08.Март.2021 13:06:45 UTC](https://meta.discourse.org/t/how-to-add-min-or-max-values-in-custom-fields/182482 "2021-03-08T13:06:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cyan\_Suntay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cyan_suntay/32/206851_2.png) [@Cyan\_Suntay](https://meta.discourse.org/u/Cyan_Suntay)
#### Post date: [08.Март.2021 13:06:45 UTC](https://meta.discourse.org/t/how-to-add-min-or-max-values-in-custom-fields/182482/1 "2021-03-08T13:06:45Z")

</div>

Я нашел эту тему и знаю, что в Discourse можно добавлять пользовательские поля при регистрации.

> [@Creating and configuring custom user fields](https://meta.discourse.org/t/how-to-create-and-configure-custom-user-fields/113192):
>
> bookmark This guide explains how to create and configure custom user fields in Discourse, including how to add them to the signup form, user profiles, and user directory. person_raising_hand Required user level: Administrator Custom user fields allow you to collect additional information from your users beyond the standard profile fields. These fields can be displayed on user cards, user summary pages, and even retrieved using the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. This guide will walk you through th…

Хочу добавить поле «Возраст» и запретить отправку, если пользователю меньше 13 лет. Я знаю, что это можно сделать с помощью параметра min в number\_field. Возможно ли это реализовать в пользовательских полях?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [08.Март.2021 13:20:15 UTC](https://meta.discourse.org/t/how-to-add-min-or-max-values-in-custom-fields/182482/2 "2021-03-08T13:20:15Z")

</div>

Думаю, для этого потребуется плагин.

Также считаю, что если вы установите требование о возрасте не менее 13 лет, дети просто будут указывать ложные данные при создании аккаунта. Лучше принимать указанный возраст, а затем отказывать в доступе, на мой взгляд. Но и это, скорее всего, я бы реализовал с помощью плагина.
