Selecting values in forms via Query String parameters #7042
-
I was curious about the idea of deep linking to forms in my Decap CMS with query string values and figuring out how to make various values be automatically selected (instead of requiring user action). For example instead of linking to:
Linking to the following
The goal being that the field with Upon testing this out of curiosity it actually works already 🥳🎈 I tested with multiple values in the QS and in the following widget types: Perhaps this is just missing from the documentation? Or I missed it in the documentation? NOTE: One quirk which affects deep-linking in general (not just query string values) is the URL gets striped of the all path values except the root.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@privatemaker how did you achieve this exactly? |
Beta Was this translation helpful? Give feedback.
-
Nothing special. Simply loading the URL with the Query String values:
Once the URL is constructed it works either by clicking on it or manually loading it in the browser |
Beta Was this translation helpful? Give feedback.
Lol 🤣 @martinjagodic this is already documented under Beta Features: Dynamic Default Values. That list is just so long and semantically covers almost all of the documentation- I must have read this ages ago and forgot.
Hence the need to move things out of
Beta
getting start on #7040 it is!