# Site Setting Integer Validation Issue

**URL:** https://meta.discourse.org/t/site-setting-integer-validation-issue/154993
**Category:** UX
**Created:** [June 16, 2020, 1:13pm UTC](https://meta.discourse.org/t/site-setting-integer-validation-issue/154993 "2020-06-16T13:13:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [June 16, 2020, 1:13pm UTC](https://meta.discourse.org/t/site-setting-integer-validation-issue/154993/1 "2020-06-16T13:13:32Z")

</div>

I am facing integer validation problem in many of the site settings like if we pass a string to that integer field its conversion is turning it to zero and I thought, it should take the minimum value or default value. Along with that, it appears that the string value in that field is set and then on refreshing a page it sets to 0.

Eg: `suggested topics:` writing into the text field as _hello_ , appears to be set and on refreshing a page it sets to 0.

---

<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: [June 16, 2020, 2:20pm UTC](https://meta.discourse.org/t/site-setting-integer-validation-issue/154993/2 "2020-06-16T14:20:38Z")

</div>

> [@jahan\_gagan](#):
>
> writing into the text field as _hello_ , appears to be set and on refreshing a page it sets to 0.

The suggested solution for issues like this is usually “don’t do that.” And if you do, don’t click the submit button for a value that you don’t want.

---

<div class="post-metadata">

### Author: ![Andrew77](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Andrew77](https://meta.discourse.org/u/Andrew77)
#### Post date: [June 23, 2020, 4:13am UTC](https://meta.discourse.org/t/site-setting-integer-validation-issue/154993/3 "2020-06-23T04:13:14Z")

</div>

yup, you are right @JayPfaffman
