Place insertion point in a specified field on newCard

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
Tony
Posts: 9
Joined: Sat Dec 15, 2012 8:52 pm

Place insertion point in a specified field on newCard

Post by Tony »

I'm sure this is simple, but I've been searching the forums for the past half hour and can't find an answer.

Is there a way to make the cursor/insertion point show up in a specific field every time a new card is created? Basically, I've got a background that will be placed on every card, and that background has two fields. Whenever a new card is created, I want the insertion point to be blinking in field 1 so that the user can begin typing right away (instead of having to click or tab into that field to get started typing).

I'm assuming this can be accomplished within an "on newCard" handler. But what is the command?

Thanks.

Tony
snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Place insertion point in a specified field on newCard

Post by snm »

Try select after field command in handler on openCard

Marek
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Place insertion point in a specified field on newCard

Post by Klaus »

Hi Tony,

sice your fields are still empty at that time you can also use:
...
focus on fld 1
...

Best

Klkaus
Tony
Posts: 9
Joined: Sat Dec 15, 2012 8:52 pm

Re: Place insertion point in a specified field on newCard

Post by Tony »

I knew it would be simple. Thank you!
Post Reply