$groupList = ['' => ts('- All Contacts -')] + CRM_Core_PseudoConstant::nestedGroup();
$this->add('select', 'group_id', ts('Select Group'), $groupList, FALSE, ['class' => 'crm-select2 huge']);
- if (Civi::settings()->get('dedupe_default_limit')) {
- $this->add('text', 'limit', ts('No of contacts to find matches for '));
- }
+ $this->add('text', 'limit', ts('No of contacts to find matches for '));
+
+ // To improve usability for smaller sites, we don't show the limit field unless a default limit has been set.
+ $this->assign('limitShown', (bool) Civi::settings()->get('dedupe_default_limit'));
+
$this->addButtons([
[
'type' => 'next',
<td class="label">{$form.group_id.label}</td>
<td>{$form.group_id.html}</td>
</tr>
- <tr class="crm-dedupe-find-form-block-limit">
- <td class="label">{$form.limit.label}</td>
- <td>{$form.limit.html}</td>
- </tr>
+ {if $limitShown}
+ <tr class="crm-dedupe-find-form-block-limit">
+ <td class="label">{$form.limit.label}</td>
+ <td>{$form.limit.html}</td>
+ </tr>
+ {/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>