diff --git a/x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx b/x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx index f64bdaacd7ff20..0bbc44f0b09b7c 100644 --- a/x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx +++ b/x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx @@ -5,6 +5,7 @@ */ import React, { useEffect, useState, useCallback } from 'react'; import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n/react'; import { PainlessLang, PainlessContext } from '@kbn/monaco'; import { EuiFlexGroup, @@ -260,20 +261,24 @@ const RuntimeFieldFormComp = ({ error={getErrorsMessages()} isInvalid={!isValid} helpText={ - - - - {i18n.translate('xpack.runtimeFields.form.script.learnMoreLinkText', { - defaultMessage: 'Learn more about syntax.', - })} - - - + + {i18n.translate('xpack.runtimeFields.form.script.learnMoreLinkText', { + defaultMessage: 'Learn more about syntax.', + })} + + ), + }} + /> } fullWidth > diff --git a/x-pack/plugins/runtime_fields/public/components/runtime_field_form/schema.ts b/x-pack/plugins/runtime_fields/public/components/runtime_field_form/schema.ts index 75ea9a47404d77..51bef958c4fc2a 100644 --- a/x-pack/plugins/runtime_fields/public/components/runtime_field_form/schema.ts +++ b/x-pack/plugins/runtime_fields/public/components/runtime_field_form/schema.ts @@ -45,10 +45,6 @@ export const schema: FormSchema = { 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.', - }), }, }, };