Hello,
I want to rename a Section in my app based on the toggle of a BooleanField:
class Parametrization(ViktorParametrization):
[...]
tab_1.section_1.boolean_field = BooleanField('name')
[...]
if Lookup('tab_1.section_1.boolean_field'):
tab_2.section_2 = Section('name_if_true')
else:
tab_2.section_2 = Section('name_if_false)
This always seems to return a section with the name ‘name_if_true’.
Is there a way to change the section names depending on a BooleanField (and some of the attributes inside the section)?