mobile input field

Eric Corbett eric at canelasoftware.com
Wed Jan 7 19:07:16 EST 2015


Thanks Rick,

What I ended up trying is this:

on inputTextChanged, I get the mobile field value, strip out any non numeric characters, and the set the text of the field to the new value. This unexpectedly works without first seeing the character in the field.

 - E



On Jan 7, 2015, at 3:53 PM, Rick Harrison <harrison at all-auctions.com> wrote:

> Hi Eric,
> 
> Users may type anything they want into a field, and it is up to
> the programmer to make sure that the type of data is accepted 
> (or valid) if possible.  Use a text field for the input, and
> then process the text to see if it is valid numeric data.  If so, you
> are good, if not, you have to tell them they didn’t enter numeric
> data and to try again.
> 
> The only other way I can think of is you would have to make up
> some other kind of control similar to a date picker where only
> numeric values can be scrolled to and selected by clicking on them,
> kind of like making your own keypad control.
> 
> So the answer to your question is most probably no.
> 
> Cheers and good luck!
> 
> Rick
> 
> 
>> On Jan 7, 2015, at 6:18 PM, Eric Corbett <eric at canelasoftware.com> wrote:
>> 
>> Howdy,
>> 
>> Any was to restrict input to numbers only without using the numbers keyboard or replacing non numeric numbers after the fact for a mobile input control?
>> 
>> Thanks,
>> 
>> - Eric
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list