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 += @" -