Feature Requests
Share ideas, discuss and vote on requests from other users in community
This object is in archive! 

Additional Domain Fields: Increase HTML customisation options

PhilB shared this idea 6 years ago
Under Consideration

At the moment the HTML for additional domain fields is spat out using a single macro in the templates ($domainfield):

  1. {foreach from=$domain.fields key=domainfieldname item=domainfield}
  2. <tr><td class="fieldlabel">{$domainfieldname}</td><td>{$domainfield}</td></tr>
  3. {/foreach}

Please make this instead work in a similar way to product customfields, eg:

  1. {foreach key=num item=customfield from=$customfields}
  2. <tr><td class="fieldlabel">{$customfield.name}:</td><td>{$customfield.input}{if $customfield.description}<br /><small>{$customfield.description}</small>{/if}</td></tr>
  3. {/foreach}

Because then you can do customisation of the additional domain fields on a field by field basis; such as adding an id to the field (making it possible/easier to do jquery type stuff on the field itself such as AJAX verification, making fields mandatory in javascript until https://requests.whmcs.com/responses/additional-domain-fields-support-mandatory-compulsory-checkboxes-values gets resolved), changing the formatting of a particular field, etc.

It's, y'know, good for consistency too.