multiple MobileControls INPUT on a card

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
gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

multiple MobileControls INPUT on a card

Post by gepponline » Wed Mar 18, 2015 3:03 pm

Hi!
i have 3 mobilecontrols (type input) on a card.

When i clik on one of them to fill it, instead of the return button to confirm, i have a left to right arrow that move the focus on the next mobile control.
The only one that show the confirm button is the last mobilecontrol
why?
How to avoid it?

thank you!

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Location: Provo, Utah, USA
Contact:

Re: multiple MobileControls INPUT on a card

Post by asayd » Thu Mar 19, 2015 4:14 pm

You may have to set the keyboard type and/or the return key label when you click on the field(s):

Code: Select all

on openField
    if the environment is "mobile" then
        mobileSetKeyboardType "default"
        if the platform is "iphone" then
            iphoneSetKeyboardReturnKey "done"
        end if
    end if
end openField
Note the the iphoneSetKeyboardReturnKey command is iOS only, unless something has changed recently.

Hope this helps,

Devin
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

gepponline
Posts: 91
Joined: Tue Sep 03, 2013 1:53 pm

Re: multiple MobileControls INPUT on a card

Post by gepponline » Thu Mar 19, 2015 4:26 pm

ok!
I'm working on android but it working teh same with SetKeyboardReturnKey

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”