Skip to content

Commit

Permalink
Add help text for runtime fields source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Locke committed Dec 7, 2020
1 parent 28ea225 commit ec343c8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { i18n } from '@kbn/i18n';

import { FormSchema, fieldValidators } from '../../shared_imports';
import { RUNTIME_FIELD_OPTIONS } from '../../constants';
import { RuntimeField, RuntimeType, ComboBoxOption } from '../../types';
Expand Down Expand Up @@ -46,6 +45,10 @@ export const schema: FormSchema<RuntimeField> = {
label: i18n.translate('xpack.runtimeFields.form.defineFieldLabel', {
defaultMessage: 'Define field (optional)',
}),
helpText: i18n.translate('xpack.runtimeFields.form.source.scriptFieldHelpText', {
defaultMessage:
'Runtime fields without a script retrieve values from a field with the same name in _source. If a field with the same name doesn’t exist, no values are returned when a search request includes the runtime field.',
}),
},
},
};

0 comments on commit ec343c8

Please sign in to comment.