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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

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

Post by sms5138 » Thu May 07, 2015 7:58 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10394
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Thu May 07, 2015 8:11 pm

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
Last edited by dunbarx on Fri May 08, 2015 3:32 am, edited 1 time in total.

sms5138
Posts: 126
Joined: Mon Feb 23, 2015 11:49 pm

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

Post by sms5138 » Thu May 07, 2015 10:23 pm

Thanks Craig!

Post Reply