I am attempting to piece together dynamic variables to determine the submenu from a previous menu choice.
Choose a muscle motion to exercise:
<$select $tiddler=’$:/verb/exercise’ field=‘exercise’ default=‘Choose a new exercise’>
< option>abdominals< /option>
< option>pulling< /option>
< option>pushing< /option>
< option>squats< /option>
< option>hip_hinges< /option>
</$select>
suppose I have populated different exercise list inside different fields segregated by the muscle group.
list_abdominals: [[Woodpecker Plank]] [[Single Leg Reverse Jackknife]] [[Spiderman Crunches]] [[Starfish Crunches]] …
list_hip_hinges [[Barbell hip thrust]] [[Bear crawls ]] [[Bent-over row]] [[Clamshell]]…
list_pulling [[Fly Pull-Ups]] [[Foot-Supported L-Sit Hold]] [[Frog Pull-Ups]] [[Gorilla Pull-Ups]]…
list_pushing [[Side-to-Side Push-Ups]] [[Single-Arm Handstand Push-Ups]] [[Spiderman Push-Ups]]…
depending on the exercise group i would like the corresponding list option. So far I’ve figured out how to make the static syntax work.
Abdominal Exercise:<$select field=“exercise_abdominal”><$list filter="[list[!!list_abdominals]]">{{!!title}}</$list></$select>
dynamic syntax (not working)
{{!!exercise}} Exercise:<$select field={{!!exercise}}><$list filter="[list[list_{{!!exercise}}]]">{{!!title}}</$list></$select>
dynamic syntax alt (not working)
{{!!exercise}} Exercise:<$select field="{{!!exercise}}"><$list filter="[list[list_<$text text={{!!exercise}}/>]]">{{!!title}}</$list></$select>
- if i print
list_{{!!exercise}}
it will print the text as it should: list_{{!!exercise}} - if i print
list[list_<$text text={{!!exercise}}
it will print the text as it should: list_<$text text={{!!exercise}}/>
then why its not feeding into command execution?
once i figure that out, I will also like to include a counter in the suffix for each field name exercise set on each entry for repetitions; in order to track which exercise set each repetition belongs to.
I’m guessing
{{!!exercise}}_repetion_set _ +indexes[]