# dry-validation, custom field name

**URL:** <https://discourse.dry-rb.org/t/dry-validation-custom-field-name/1847>\
**Category:** Uncategorized\
**Created:** [September 28, 2024, 10:52pm UTC](https://discourse.dry-rb.org/t/dry-validation-custom-field-name/1847 "2024-09-28T22:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radar](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/radar/32/612_2.png) [@radar](https://discourse.dry-rb.org/u/radar)\
**Post date:** [September 28, 2024, 10:52pm UTC](https://discourse.dry-rb.org/t/dry-validation-custom-field-name/1847/1 "2024-09-28T22:52:35Z")

</div>

I’m trying to output a custom field name for a validation:

```auto
require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'dry-validation'
end

require 'dry-validation'

class RowValidator < Dry::Validation::Contract
  params do
    required(:amount).filled(:integer, gt?: 0)
  end

  def self.messages
    super.merge(en: {
      dry_validation: {
        rules: {
          amount: "Amount (column 1)",
        },
      }
    })
  end
end

validator = RowValidator.new
p validator.call(amount: 0).errors(full: true).map(&:text)

```

This is outputting “amount must be greater than 0”, but I’d like it to be “Amount (column 1) must be greater than 0”.

Is there a way to do this without using an external i18n file?
