Page 1 of 1

how to lock the text in a field after an action?

Posted: Thu May 07, 2015 7:58 pm
by sms5138
Hi everyone,

I'm sure this is super simple, but i've not been able to figure this out.

I want to be able to allow the user to enter information, and then after clicking a button lock the field so that they are unable to go back and change it again.

any advice, or resources i may have missed would be greatly appreciated.

Thanks!

-Sean

Re: how to lock the text in a field after an action?

Posted: Thu May 07, 2015 8:11 pm
by dunbarx
Hi.

However the user terminates text entry, trap the appropriate message and lock the field. So for example, if the user hits "enter", then trap the "enterInField" message. There are about a million different methods where this action might be initiated, depending on how that user terminates.

One thing to watch is when the user puts the cursor in the field, and exits it without changing anything. Please look up the difference between "closeField" and "exitField".

That sort of thing...


Craig Newman

Re: how to lock the text in a field after an action?

Posted: Thu May 07, 2015 10:23 pm
by sms5138
Thanks Craig!