Add numeric-only validation support on fields

This commit is contained in:
Dominik Downarowicz committed 2023-10-26 18:08:40 +02:00
1 parent d39b10e79d
commit 54e3008e26
2 files changed
+12 -3

No files matched your search

+3
View File
@@ -33,6 +33,9 @@ var screen1 = go3270.Screen{
{Row: 6, Col: 0, Content: "Password . . . ."},
{Row: 6, Col: 19, Name: "password", Write: true, Hidden: true},
{Row: 6, Col: 40}, // field "stop" character
{Row: 7, Col: 0, Content: "EmployeeId . . . ."},
{Row: 7, Col: 19, Name: "employeeId", Write: true, Highlighting: go3270.Underscore, NumericOnly: true},
{Row: 7, Col: 40}, // field "stop" character
{Row: 8, Col: 0, Content: "Press"},
{Row: 8, Col: 6, Intense: true, Content: "enter"},
{Row: 8, Col: 12, Content: "to submit your name."},