In database, the default value for this column is -1 which means unlimited capacity. Hence, whenever a model is created, the default text in that textfield is -1 which is not meaningful to end-user. The billion dollars question is how can I have the default text for this field says "unlimited" and -1 is the value. Of course, if user type in any other number then that number should be stored in database. Thank you!
Sorry, I don’t think you can do that. By doing so, what would be saved in the column capacity in the database would be “unlimited” and it will fail both requirements and Ajax validation since it must be an integer. Thank you anyway!