New strategies for conditional defaults on skipped questions with v8? #1204
Replies: 3 comments 4 replies
-
I think you have a point here. #1126 isn't breaking for Do you agree, @copier-org/maintainers? |
Beta Was this translation helpful? Give feedback.
-
Have you tried using a macro? |
Beta Was this translation helpful? Give feedback.
-
I have a template that makes heavy use of
when
conditionals along withdefaults
that also depend on prior questions. For example, take the following config:Prior to v8 the value of
use_some_feature
would have been:-
True
(but not shown) if they selected "Fully featured" mode-
False
(but not shown) if they selected "Simple" mode- shown as a question if they selected "Customize" mode
I had thought that that was a well-supported feature due to the wording of the docs:
As of v8, however,
use_some_feature
will always be False, regardless of whether the use choses "Full" or "Simple" mode.This change is due to #1126. It was raised as a bug in #1175, but closed and stated as "backwards compatible". https://github.com/orgs/copier-org/discussions/678#discussioncomment-2822746 is also linked and #629 is linked for some "ideas".
After some reading though, I've still been unable to come up with a strategy that preserves the behavior mentioned above after v8.
I would greatly appreciate any tips (cc @sisp @pawamoy) for achieving the desired behavior, which again, is to have
use_some_feature
be:True
(but not shown) if they selected "Fully featured" modeFalse
(but not shown) if they selected "Simple" modeBeta Was this translation helpful? Give feedback.
All reactions