add checkbox reading to dialog & login

This commit is contained in:
2025-09-27 23:11:51 -06:00
parent 9427535eb5
commit 56792596bb
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -87,6 +87,14 @@ func (fld *DialogItem) DateValues() []int {
return rc
}
// IsChecked returns true if a dialog checkbox is checked.
func (fld *DialogItem) IsChecked() bool {
if fld.Type == "checkbox" {
return len(fld.Value) > 0
}
return false
}
/* Field returns a pointer to a dialog's field, given its name.
* Parameters:
* name - The name of the field to find.