Hello,
How can I stop the application from proceeding until a field contains a minimum number of characters? I’m at the end of a kiosk workflow where patients swipe their cards, and I need the script to remain idle until the required data has been entered.
Quick Code Question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
Emily-Elizabeth
- Posts: 147
- Joined: Mon Jan 03, 2022 7:10 pm
- Contact:
Re: Quick Code Question
Code: Select all
on KeyUp
CharCheck
pass KeyUp
end KeyUp
on DeleteKey
CharCheck
pass DeleteKey
end DeleteKey
on BackspaceKey
CharCheck
pass BackspaceKey
end BackspaceKey
private command CharCheck
set the enabled of button "OK" to (the number of characters of me >= 3)
end CharCheck