('categoryCombo', { validateFields: [] })
const domainTypeIsTracker = domainTypeValue === 'TRACKER'
const disabled = domainTypeIsTracker
const newCategoryComboLink = useHref('/categoryCombos/new')
@@ -52,14 +58,39 @@ export function CategoryComboField() {
onAddNew={() => window.open(newCategoryComboLink, '_blank')}
>
-
+ name="categoryCombo"
+ label={i18n.t('{{fieldLabel}} (required)', {
+ fieldLabel: i18n.t('Category combination'),
+ })}
+ helpText={i18n.t(
+ 'Choose how this data element is disaggregated'
+ )}
+ error={meta.touched && !!meta.error}
+ validationText={meta.touched ? meta.error : undefined}
+ dataTest="formfields-categorycombo"
+ >
+ {
+ input.onChange(selected)
+ input.onBlur()
+ }}
+ onBlur={input.onBlur}
+ onFocus={input.onFocus}
+ query={{
+ resource: 'categoryCombos',
+ params: {
+ filter: [
+ 'isDefault:eq:false',
+ 'dataDimensionType:eq:DISAGGREGATION',
+ ],
+ },
+ }}
+ />
+
)