Editable field
Posted: Mon Oct 21, 2013 4:34 pm
Hi,
Would it be possible to do something like the following: have an editable text field in which the user may enter some text (eg the answer to a question in a quiz). On pressing return the user's answer is checked against the stored answer (this is a really simple quiz so the two should match if the user has got it correct), and notify the user of success/failure and then update their score accordingly.
I would like to do this from the field rather than have the user enter an answer in a field then click a button to check their answer. However as I understand it a field needs to have its lock property set to false in order to be editable. But it needs to be locked in order to receive messages which get it to do something.
I've looked at returnKey, and returnInField but the penny is not dropping, so any help would be much appreciated.
Thanks in advance.
Would it be possible to do something like the following: have an editable text field in which the user may enter some text (eg the answer to a question in a quiz). On pressing return the user's answer is checked against the stored answer (this is a really simple quiz so the two should match if the user has got it correct), and notify the user of success/failure and then update their score accordingly.
I would like to do this from the field rather than have the user enter an answer in a field then click a button to check their answer. However as I understand it a field needs to have its lock property set to false in order to be editable. But it needs to be locked in order to receive messages which get it to do something.
I've looked at returnKey, and returnInField but the penny is not dropping, so any help would be much appreciated.
Thanks in advance.