I’ve got Form domain class and there is typeOfTransaction property. This property is required (blank: false). I want to write custom error message for this property, if the user does not set the value, the message must be appeared.
com.example.domain.form.typeOfTransaction.blank = Type of transaction required
Above is the message, but I don’t get it when I’m trying to save form with empty typeOfTransaction field. Instead of this message I’ve got default message
"Please select an item in the list."
p.s. I don’t know where this default message is defined.
If you use the absolute name of your class you need to use the exact name of the class, including capitalization – so I’m guessing you should put:
If you don’t use the absolute name you don’t capitalize the class name: