Good evening,
The community previously helped me put this snippet together which is probably why I can't figure out how to edit it. Lists are something that I have not been able to wrap my brain around. What I am trying to do is change the format so that instead of needing to checkoff the weeks inside the "Weekday" formenu, I can instead type the number of weeks in the formtext "Weekday2". I can't figure out how to do this because the list does not read the formtext as a number so it keeps giving me an error. Any ideas?
Thank you!
{note: trim=left}{note: trim=left}{if: ndays<0 AND ntasks<0}{formmenu: default=1.01 The Plot Thickens; default=1.02 Plotting It Out; default=1.03 Making Connections; default=1.04 What Does It Mean?; default=1.05 Choose Your Words; default=1.06 Implicit or Explicit Evidence; default=1.07 What is the Big Idea?; default=1.08 Getting the Big Picture Discussion-Based Assessment; default=1.09 Getting the Big Picture Exam; default=2.01 Organize Ideas in Informational Writing; default=2.02 Gather and Check Your Information; default=2.03 Cite Your Sources; default=2.04 Introduce Your Ideas; default=2.05 What's Your Big Idea?; default=2.06 Don't Leave It Hanging; default=2.07 Wrap Up Your Ideas; default=2.08 Relaying Information Discussion-Based Assessment; default=3.01 Getting to the Point; default=3.02 Multiple Views; default=3.03 Your Idea in Pictures; default=3.04 Figuring Out Figurative Language; default=3.05 Pieces to the Puzzle; default=3.06 The Appeal of Rhetoric; default=3.07 Recognizing Rhetoric; default=3.08 The Power of Language Discussion-Based Assessment; default=3.10 Segment One Exam; name=Tasks2; multiple=yes}{formmenu: default=1.01 The Plot Thickens; default=1.02 Plotting It Out; default=1.03 Making Connections; default=1.04 What Does It Mean?; default=1.05 Choose Your Words; default=1.06 Implicit or Explicit Evidence; default=1.07 What is the Big Idea?; default=1.08 Getting the Big Picture Discussion-Based Assessment; default=1.09 Getting the Big Picture Exam; default=1.10 Poetry About People (Advanced Assignment); default=2.01 Organize Ideas in Informational Writing; default=2.02 Gather and Check Your Information; default=2.03 Cite Your Sources; default=2.04 Introduce Your Ideas; default=2.05 What's Your Big Idea?; default=2.06 Don't Leave It Hanging; default=2.07 Wrap Up Your Ideas; default=2.08 Relaying Information Discussion-Based Assessment; default=2.10 Getting to Know You (Advanced Assignment); default=3.01 Getting to the Point; default=3.02 Multiple Views; default=3.03 Your Idea in Pictures; default=3.04 Figuring Out Figurative Language; default=3.05 Pieces to the Puzzle; default=3.06 The Appeal of Rhetoric; default=3.07 Recognizing Rhetoric; default=3.08 The Power of Language Discussion-Based Assessment; default=3.09 From My Point of View (Advanced Assignment); default=3.10 Segment One Exam; name=Tasks2A; multiple=yes}{formmenu: default=4.01 Making Arguments That Matter; default=4.02 Organize and Introduce Your Argument; default=4.03 Show Some Support; default=4.04 Your Argumentative Rough Draft; default=4.05 Artful Argumentation Discussion-Based Assessment; default=4.07 Misguided Arguments\ ; default=4.08 Help with Hyphens\ ; default=5.01 Influencing Poetry; default=5.02 Meaningful Figurative Language; default=5.03 Nice to Meet You; default=5.04 Get Versed in Verbals; default=5.05 The Turning Point; default=5.06 Pronoun Problems Solved; default=5.07 That’s a Wrap; default=5.08 A Novel Approach Discussion-Based Assessment\ ; default=5.09 A Novel Approach Exam; default=6.01 Mix It Up; default=6.02 Planning a Narrative; default=6.03 Begin Your Narrative; default=6.04 Writing a Noteworthy Narrative; default=6.05 The Writer’s Craft; default=6.06 Dare to Compare; default=6.07 Publishing Your Narrative; default=6.08 Telling Tales Discussion-Based Assessment; default=6.10 Segment Two Exam; name=Tasks3; multiple=yes}{formmenu: default=4.01 Making Arguments That Matter; default=4.02 Organize and Introduce Your Argument; default=4.03 Show Some Support; default=4.04 Your Argumentative Rough Draft; default=4.05 Artful Argumentation Discussion-Based Assessment; default=4.07 Misguided Arguments\ ; default=4.08 Help with Hyphens\ ; default=4.09 Language That Packs a Punch (Advanced Assignment); default=5.01 Influencing Poetry; default=5.02 Meaningful Figurative Language; default=5.03 Nice to Meet You; default=5.04 Get Versed in Verbals; default=5.05 The Turning Point; default=5.06 Pronoun Problems Solved; default=5.07 That’s a Wrap; default=5.08 A Novel Approach Discussion-Based Assessment\ ; default=5.09 A Novel Approach Exam; default=5.10 Stylish Poems (Advanced Assignment); default=6.01 Mix It Up; default=6.02 Planning a Narrative; default=6.03 Begin Your Narrative; default=6.04 Writing a Noteworthy Narrative; default=6.05 The Writer’s Craft; default=6.06 Dare to Compare; default=6.07 Publishing Your Narrative; default=6.08 Telling Tales Discussion-Based Assessment; default=6.09 From Stanzas to Screenplays (Advanced Assignment); default=6.10 Segment Two Exam; name=Tasks3A; multiple=yes}{endif}{endnote}
{if: `Completion Goal`; trim=left}Completion Goal Date: {formdate: MM/DD/YYYY; name=Deadline2} {if: {=round({=30 / {=datetimediff({=datetimeparse({time: MM/DD/YYYY}, "MM/DD/YYYY")}, {=datetimeparse(deadline2, "MM/DD/YYYY")}, "W")}})} == "Infinity"}{else}
{note}Number of Weeks to Completion Goal: {=datetimediff({=datetimeparse({time: MM/DD/YYYY}, "MM/DD/YYYY")}, {=datetimeparse(deadline2, "MM/DD/YYYY")}, "W")}{endnote: trim=right}{endif}
{else}{formtoggle: name=Completion Goal; default=no}{endformtoggle}{endif}
Segment: {formmenu: default=1; 2; name=Segment}
Start Date: {formdate: MM/DD/YYYY; name=Week Of}
Number of Weeks: {formtext: name=Weekday2; cols=5}{formmenu: Week 1; Week 2; Week 3; Week 4; Week 5; Week 6; Week 7; Week 8; Week 9; Week 10; Week 11; Week 12; Week 13; Week 14; Week 15; Week 16; Week 17; name=Weekday; multiple=yes}
{note: trim=left}
Lessons to Complete: {if: segment == "1"}{formmenu: 1.01 The Plot Thickens; 1.02 Plotting It Out; 1.03 Making Connections; 1.04 What Does It Mean?; 1.05 Choose Your Words; 1.06 Implicit or Explicit Evidence; 1.07 What is the Big Idea?; 1.08 Getting the Big Picture Discussion-Based Assessment; 1.09 Getting the Big Picture Exam; 1.10 Poetry About People (Advanced Assignment)\ ; 2.01 Organize Ideas in Informational Writing; 2.02 Gather and Check Your Information; 2.03 Cite Your Sources; 2.04 Introduce Your Ideas; 2.05 What's Your Big Idea?; 2.06 Don't Leave It Hanging; 2.07 Wrap Up Your Ideas; 2.08 Relaying Information Discussion-Based Assessment; 2.10 Getting to Know You (Advanced Assignment); 3.01 Getting to the Point; 3.02 Multiple Views; 3.03 Your Idea in Pictures; 3.04 Figuring Out Figurative Language; 3.05 Pieces to the Puzzle; 3.06 The Appeal of Rhetoric; 3.07 Recognizing Rhetoric; 3.08 The Power of Language Discussion-Based Assessment; 3.09 From My Point of View (Advanced Assignment); 3.10 Segment One Exam; name=Tasks; multiple=yes}{endif}{if: segment == "2"}{formmenu: 4.01 Making Arguments That Matter; 4.02 Organize and Introduce Your Argument; 4.03 Show Some Support; 4.04 Your Argumentative Rough Draft; 4.05 Artful Argumentation Discussion-Based Assessment; 4.07 Misguided Arguments\ ; 4.08 Help with Hyphens\ ; 4.09 Language That Packs a Punch (Advanced Assignment); 5.01 Influencing Poetry; 5.02 Meaningful Figurative Language; 5.03 Nice to Meet You; 5.04 Get Versed in Verbals; 5.05 The Turning Point; 5.06 Pronoun Problems Solved; 5.07 That’s a Wrap; 5.08 A Novel Approach Discussion-Based Assessment\ ; 5.09 A Novel Approach Exam; 5.10 Stylish Poems (Advanced Assignment); 6.01 Mix It Up; 6.02 Planning a Narrative; 6.03 Begin Your Narrative; 6.04 Writing a Noteworthy Narrative; 6.05 The Writer’s Craft; 6.06 Dare to Compare; 6.07 Publishing Your Narrative; 6.08 Telling Tales Discussion-Based Assessment; 6.09 From Stanzas to Screenplays (Advanced Assignment); 6.10 Segment Two Exam; name=Tasks; multiple=yes}{endif}{formtoggle: name=All Assignments; default=no}{endformtoggle}{if: `all assignments` == "yes"}{formtoggle: name=Advanced; default=no}{endformtoggle}{endif}{endnote}
{endnote}{if: segment == "1"}{`start of week`={time: MM/DD/YYYY; at={=`week of`}; shift=<SUN <MON +1D}}{ndays=count(weekday)}
{if: `all assignments` == "no"}{ntasks=count(tasks)}{elseif: `all assignments` == "yes" AND advanced == "no"}{ntasks=count(tasks2)}{elseif: `all assignments` == "yes" AND advanced == "yes"}{ntasks=count(tasks2a)}{endif}{if: ndays>0 AND ntasks>0}{`min tasks per day`=floor(ntasks/ndays)}{reminder={=remainder(ntasks, ndays)}}{`tasks per day`=map([`min tasks per day` for x in seq(1,ndays)], (v, i)-> v + 1 if i <= reminder else v)}{indexes=merge([0],[sum(slice(`tasks per day`, 1, n)) for n in seq(1, ndays)])}{if: `all assignments` == "no"}{`daily tasks`=[slice(tasks, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{elseif: `all assignments` == "yes" AND advanced == "no"}{`daily tasks`=[slice(tasks2, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{elseif: `all assignments` == "yes" AND advanced == "yes"}{`daily tasks`=[slice(tasks2a, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{endif}{`task list`=[weekday[n]:`daily tasks`[n] for n in seq(1,ndays)]}
{note}{endnote}
Segment 1 Pace Chart
Week # Assignment
{repeat: for day in keys(`task list`)}{=day}
Date: {time: M-DD-YYYY; at={=`start of week`}; shift={="+" & {=substring((day), 6)} & "W"} -1D} {=join(`task list`[day],"\n")}{endrepeat}
{endif}{endif}
{if: segment == "2"; trim=left}{`start of week`={time: MM/DD/YYYY; at={=`week of`}; shift=<SUN <MON +1D}}{ndays=count(weekday)}
{if: `all assignments` == "no"}{ntasks=count(tasks)}{elseif: `all assignments` == "yes" AND advanced == "no"}{ntasks=count(tasks3)}{elseif: `all assignments` == "yes" AND advanced == "yes"}{ntasks=count(tasks3a)}{endif}{if: ndays>0 AND ntasks>0}{`min tasks per day`=floor(ntasks/ndays)}{reminder={=remainder(ntasks, ndays)}}{`tasks per day`=map([`min tasks per day` for x in seq(1,ndays)], (v, i)-> v + 1 if i <= reminder else v)}{indexes=merge([0],[sum(slice(`tasks per day`, 1, n)) for n in seq(1, ndays)])}{if: `all assignments` == "no"}{`daily tasks`=[slice(tasks, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{elseif: `all assignments` == "yes" AND advanced == "no"}{`daily tasks`=[slice(tasks3, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{elseif: `all assignments` == "yes" AND advanced == "yes"}{`daily tasks`=[slice(tasks3a, indexes[n]+1, indexes[n+1]) for n in seq(1,ndays)]}{endif}{`task list`=[weekday[n]:`daily tasks`[n] for n in seq(1,ndays)]}
{note}{endnote}
Segment 2 Pace Chart
Week # Assignment
{repeat: for day in keys(`task list`)}{=day}
Date: {time: M-DD-YYYY; at={=`start of week`}; shift={="+" & {=substring((day), 6)} & "W"} -1D} {=join(`task list`[day],"\n")}{endrepeat}
{endif}{endif}