From 429426d793b11e2878a0eb7eae651ea81d0da715 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 20 Dec 2021 13:06:32 +0100 Subject: [PATCH] docs(context): full draft for how to create custom context fields. --- .../docs/how-to/how-to-define-custom-context-fields.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/website/docs/how-to/how-to-define-custom-context-fields.md b/website/docs/how-to/how-to-define-custom-context-fields.md index ba41582dec..51ebd4e4a5 100644 --- a/website/docs/how-to/how-to-define-custom-context-fields.md +++ b/website/docs/how-to/how-to-define-custom-context-fields.md @@ -18,16 +18,12 @@ In the Unleash Admin UI, navigate to the _context fields_ page: 3. On the context fields page, click the "add new context field" button. - ![The ]( /img/context-field-create-button.png) + ![The "context fields" page with the "add new context field" button highlighted.]( /img/context-field-create-button.png) ## Step 2: Define the new context field {#step-2-define-new-context-field} Define the custom context field by filling out the form. You must at least the field a unique _name_. Everything else is optional. Refer to the [custom context field reference guide](../user_guide/unleash-context.md#custom-context-fields) for a full overview of the parameters and their functions and requirements. -When you are satisfied with the context field's values, use the "Create" button to submit the form and save the context field. +When you are satisfied with the context field's values, use the "create" button to submit the form and save the context field. -![New context fields](/img/new_context_field.png) - -#### What is “legal values”? {#what-is-legal-values} - -Legal values defines all possible values for the context field. this will be used in Unleash Admin UI to guide users when working with context fields to make sure they only use legal values. +![A "create context field" form. It contains data for a custom context field called "region". Its description is "allows you to constrain on specific regions" and its legal values are "Africa", "Asia", "Europe", and "North America". Its custom stickiness value is not shown.](/img/new_context_field.png)