From b49778215fe1ea1bbb53cb82c266b9cb6cab68d5 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 26 May 2025 21:33:14 -0400 Subject: [PATCH] #5 --- testTaskGate.ps1 | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/testTaskGate.ps1 b/testTaskGate.ps1 index 22692e4..486344b 100644 --- a/testTaskGate.ps1 +++ b/testTaskGate.ps1 @@ -268,37 +268,45 @@ function Build-Checkboxes { Where-Object Page -EQ $Page | Where-Object Column -EQ $Column | ForEach-Object { - $html = "" + $taskId = $_.Id + $html = "" if ($_.SubOptions) { - Write-Host "👉 Rendering SubOptions for task $($_.Id)" + Write-Host "👉 Rendering SubOptions for task $taskId" + # Build the sub-checkboxes $subHtml = ( $_.SubOptions | ForEach-Object { "" } ) -join "`n" + # Append HTML + inline script $html += @" -