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..a8978b84d6ab4c 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,8 @@ */ import React, { useEffect, useState, useCallback } from 'react'; import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n/react'; +import { EuiCode } from '@elastic/eui'; import { PainlessLang, PainlessContext } from '@kbn/monaco'; import { EuiFlexGroup, @@ -260,20 +262,25 @@ 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 about script syntax.', + })} + + ), + source: {'_source'}, + }} + /> } 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 9db23ef5291a07..6634fc34b64e44 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 @@ -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'; @@ -44,7 +43,7 @@ export const schema: FormSchema = { script: { source: { label: i18n.translate('xpack.runtimeFields.form.defineFieldLabel', { - defaultMessage: 'Define field (optional)', + defaultMessage: 'Define script (optional)', }), }, },