Setting a button to enabled only if fields complete
Posted: Sun Dec 01, 2013 4:21 pm
Hi all
I've been learning LiveCode this weekend by adapting a Python/Tkinter script I made at work for generating a report from a SQLite database.
Happy with how it has gone (lots of Google-ing to find things out), but now trying to fine tune it.
I've got a "start" button which checks input fields are filled in and then runs the report.
What I would like to try and do is
1) Stack loads, "Start" button is disabled
2) User fills in required fields
3) "Start" button gets enabled
I'm still a bit confused about the different places code can go (card, stack, controls) so not sure where this code would sit? There are 4 input fields that need to be filled for the script to run properly. Would there have to be a global variable somewhere that got set (but again, not sure where)?
Thanks in advance
I've been learning LiveCode this weekend by adapting a Python/Tkinter script I made at work for generating a report from a SQLite database.
Happy with how it has gone (lots of Google-ing to find things out), but now trying to fine tune it.
I've got a "start" button which checks input fields are filled in and then runs the report.
What I would like to try and do is
1) Stack loads, "Start" button is disabled
2) User fills in required fields
3) "Start" button gets enabled
I'm still a bit confused about the different places code can go (card, stack, controls) so not sure where this code would sit? There are 4 input fields that need to be filled for the script to run properly. Would there have to be a global variable somewhere that got set (but again, not sure where)?
Thanks in advance