C
Coder.com5mo ago
Lexa

Coder parameter form type textarea

data coder_parameter "ssh_key" {
name = "ssh_key"
display_name = "SSH Key"
description = "Set the SSH key to use for authentication"
form_type = "textarea"
default = ""
mutable = true
order = 5
}
data coder_parameter "ssh_key" {
name = "ssh_key"
display_name = "SSH Key"
description = "Set the SSH key to use for authentication"
form_type = "textarea"
default = ""
mutable = true
order = 5
}
I have set this form type, the UI not show textarea
No description
12 Replies
matifali
matifali5mo ago
@kirby could you help them how to set it up? I guess this is still a WIP and has not been released Maybe we should add a warning on provider docs for the minimum required Coder version Or better an error in the build if someone tries to use a newer feature not available in their Coder server version.
Emyrk
Emyrk5mo ago
Hello, this is because form_type is only supported by the new workspace create page that supports dynamic parameters. This is not yet released. The terraform provider is ahead of coder in that respect
Phorcys
Phorcys5mo ago
(@Lexa)
Lexa
LexaOP5mo ago
Okay thankyou for your work hard, I will be patient wait this feature.
Emyrk
Emyrk5mo ago
Thank you! Keep an eye on the release notes!
Stephen
Stephen5mo ago
Just as a heads up, dynamic parameters is now released in early access on v2.22 behind an unsafe experimental flag. There are some limitations that may cause existing templates to break. A more stable release of the feature will be out soon.
sharkymark
sharkymark5mo ago
@Stephen i looked in codersdk/deployment.go and see a 'dynamic-parameters' experiment, but if i try, the admin dashboard says it is invalid. if I use *, prebuilds is the only experiment.
Stephen
Stephen5mo ago
hey, it’s an unsafe experiment so we skip it with the wildcard. You have to explicitly opt in. I’d probably suggest holding off until the next release to play with it
sharkymark
sharkymark5mo ago
okay, that is what i thought, but like i said, when i explicitly added dynamic-parameters, the dashboard says it is invalid.
Phorcys
Phorcys5mo ago
fyi, docs for the early access are available at https://coder.com/docs/admin/templates/extending-templates/parameters#dynamic-parameters but i would still recommend holding off as kirby suggested
sharkymark
sharkymark5mo ago
for sure. i upgraded mainline to yesterday's, and the unsafe experiment at least shows the wild new workspace form with a bunch of errors, so i'll hold off. oddly, in the admin dashboard, an error message says dynamic-parameters is an invalid experiment, yet it lists it below in the experiments section. when done, this feature sounds beneficial.
matifali
matifali5mo ago
Yeah, I also noticed that valid experiments are showing as invalid on the dogfood instance too

Did you find this page helpful?