Requiring custom fields per TLD

Tags: 292 views 0

How to add custom fields per TLD for when domain names are ordered or a contact is assigned to an existing domain name.


Custom fields makes the setup easier for selling TLDs, since these often have specific requirements for contacts. The custom fields are stored as a serialised dictionary in custom_fields property of DomainRegService in Automation Server. They are also populated to contacts in Atomia Domain Registration.

The configured custom fields are requested automatically in the Order Website and Billing Customer Panel when domains are ordered. Custom fields are also required in the Hosting Control Panel when a contact is attached to an existing domain name, if it is missing required fields. With the default installation, custom fields are required when ordering .US domain names.

Required custom fields

Image: Custom fields are requested when new order is made for .US domain name.

Configuration of custom fields is done through customer validation rules. Default validation configuration is in product, but this configuration can be extended with an override file.

Configuring custom fields

    1. Add C:\Program Files (x86)\Atomia\Common\atomiaConfigurationStore.overrides file on all servers that host Atomia GUI applications.
    2. Add custom validation rules in the file for each field. See Atomia Configuration Defaults. The override file must follow the formatting rules given in the default file. For custom fields, only regexp rule types are supported. Rule format for custom fields is as follows:

Keep in mind

The default set of rules contains requirements for .US for nexus application purpose and category.

# Custom fields
# custom_fields.<RuleSetNo>.<FieldName>.<CountryOption>.<ProductGroupOption>.<ProductOption>
custom_fields.1.nexus_app_purpose.default.default.DMN-US                regexp.required            ^P[1-5]$
custom_fields.1.nexus_category.default.default.DMN-US                    regexp.required            ^C(11|12|21|31|32)$
  1. Add resource file entries for field names and validation error messages in the CustomFields global resource files for the custom theme. Field name resource entry must have <FieldName> part of the rule as a key. Validation message translations must have <FieldName>.<CountryOption>.<ProductGroupOption>.<ProductOption> as a key. For given .US configuration, use the following entries:
<data name="nexus_app_purpose" xml:space="preserve">
  <value>Application purpose</value>
<data name="nexus_app_purpose.default.default.dmn-us" xml:space="preserve">
  <value>Application purpose can be P1, P2, P3, P4 or P5</value>
<data name="nexus_category" xml:space="preserve">
  <value>Nexus category</value>
<data name="nexus_category.default.default.dmn-us" xml:space="preserve">
  <value>Nexus category can be C11, C12, C21, C31 or C32</value>

Was this helpful?