{{ts('A/B testing allows you to send two test mailings to a random subset of your recipients. After collecting and comparing metrics, the more successful mailing will be sent to the remaining recipients.')}}
</div>
<div crm-ui-field="{name: 'setupForm.abName', title: ts('Name'), help: hs('name')}" ng-if="fields.abName">
- <input
+ <input type="text"
crm-ui-id="setupForm.abName"
name="abName"
ng-model="abtest.ab.name"
crm-entityref="{entity: 'Campaign', select: {allowClear: true, placeholder: ts('Select Campaign')}}"
crm-ui-id="setupForm.campaign"
name="campaign"
- ng-model="mailing.campaign_id"
+ ng-model="abtest.mailings.a.campaign_id"
+ ng-change="abtest.mailings.b.campaign_id=abtest.mailings.a.campaign_id"
/>
</div>
<div crm-ui-field="{title: ts('Test Type')}" ng-if="fields.testing_criteria">