PoC field level hide funcs #597
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am working on moving over to huh for prompts in changie. My goal is to create a single form with all your options but based on what kind of change and now that kind is configured you may have additional custom values as well as skipping some built in ones. The exact details here are maybe not that important but here is my PR on that side of things miniscruff/changie#685 .
The important parts are like so:
This works just like dynamic groups do now so you might be wondering what is the benefit to dynamic fields? Well, dynamic fields provide the same benefit but within a single form, so previous form responses remain and you can preview what new or different fields may be presented based on your current inputs.
In the gif below ( created with vhs 😏 ) as you go up and down the "kinds" input, the next choices show and hide dynamically. The exact rules are kinda changie specific but all configured through the changie config file. If this was done via groups you would have to select a kind, it would clear the screen, hiding your previous inputs, as you continue on through the form.
Related to #582