Skip to content

Instantly share code, notes, and snippets.

@jaapjansma
Created October 22, 2020 10:33
Show Gist options
  • Save jaapjansma/0e0e0ade807a09d23031513fc83de612 to your computer and use it in GitHub Desktop.
Save jaapjansma/0e0e0ade807a09d23031513fc83de612 to your computer and use it in GitHub Desktop.
Fix for default data drop down
<div class="crm-block" ng-form="defaultDataOutput" crm-ui-id-scope>
<h3 class="widget-header">{{ts('Set defaults')}}</h3>
<table>
<thead>
<th>{{ts('Field')}}</th>
<th>{{ts('Value')}}</th>
</thead>
<tbody>
<tr ng-repeat="input in formProcessor.inputs | orderBy:'name'" ng-class-even="'crm-entity even-row even'" ng-class-odd="'crm-entity odd-row odd'">
<td>{{input.name}}</td>
<td>
<select class="huge40"
crm-ui-id="defaultDataOutput.default_data_output_configuration[input.name]"
name="input.name"
crm-ui-select="{dropdownAutoWidth : true, allowClear: true}"
ng-model="formProcessor.default_data_output_configuration[input.name]"
ng-required="false"
ng-options="field.name as field.label for field in default_data_fields track by field.name"
>
<option value="">{{ts('- Select field to add to the output -')}}</option>
</select>
</td>
</tr>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment