From 5c532779af965e12df54067688417fa8e8ea92d6 Mon Sep 17 00:00:00 2001 From: Edward Angert Date: Fri, 9 May 2025 13:01:11 -0400 Subject: [PATCH] docs: clarify parameter autofill documentation (#17728) closes #17706 Clarify that: 1. URL query parameters work without experiment flag 2. The 'populate recently used parameters' feature still requires the auto-fill-parameters experiment flag Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> --- .../extending-templates/parameters.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/admin/templates/extending-templates/parameters.md b/docs/admin/templates/extending-templates/parameters.md index 676b79d72c..b5e6473ab6 100644 --- a/docs/admin/templates/extending-templates/parameters.md +++ b/docs/admin/templates/extending-templates/parameters.md @@ -374,20 +374,20 @@ data "coder_parameter" "jetbrains_ide" { ## Create Autofill When the template doesn't specify default values, Coder may still autofill -parameters. +parameters in one of two ways: -You need to enable `auto-fill-parameters` first: +- Coder will look for URL query parameters with form `param.=`. -```shell -coder server --experiments=auto-fill-parameters -``` + This feature enables platform teams to create pre-filled template creation links. -Or set the [environment variable](../../setup/index.md), `CODER_EXPERIMENTS=auto-fill-parameters` -With the feature enabled: +- Coder can populate recently used parameter key-value pairs for the user. + This feature helps reduce repetition when filling common parameters such as + `dotfiles_url` or `region`. -1. Coder will look for URL query parameters with form `param.=`. - This feature enables platform teams to create pre-filled template creation - links. -2. Coder will populate recently used parameter key-value pairs for the user. - This feature helps reduce repetition when filling common parameters such as - `dotfiles_url` or `region`. + To enable this feature, you need to set the `auto-fill-parameters` experiment flag: + + ```shell + coder server --experiments=auto-fill-parameters + ``` + + Or set the [environment variable](../../setup/index.md), `CODER_EXPERIMENTS=auto-fill-parameters`