Field listener
Jim Ault
JimAultWins at yahoo.com
Sun Sep 10 14:16:55 EDT 2006
Now that I have time for a more detailed answer, the key lies in how you use
the 'closefield' handler of the text entry field.
It is possible to :
on closefield
if me is empty then
set a flag 'IamEmpty' to true
set the Submit button to diabled state
---or simpler for the programmer
--less user friendly
on SubmitButton
if fld textEntry is empty then
set me to diaabled state
answer "Nothing to submit"
else
do the submit tasks
end if
Jim Ault
Las Vegas
On 9/10/06 9:17 AM, "Trevor Hopkins" <tjhopkins224 at hotmail.com> wrote:
> I'm trying to build a form whose "submit" button only becomes enabled after
> text is present in a specific field (and likewise when that field is blank,
> the "submit" button returns to disabled status). Does anyone know of a
> painless way to do this? I'd also like the user to be able to hit return
> from within that field and have the "submit" button entered. Right now, it
> seems, the return key must be hit twice in order to first exit the field and
> then select "submit".
>
> Many thanks,
>
> Trevor Hopkins
> Exeter, UK
>
> _________________________________________________________________
> Windows Live Messenger has arrived. Click here to download it for free!
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list