Beginning of input field

Hi,

I my app, I have a numeric input field with mask and max. characters. So far so good.
But when I tick that field, the cursor is positioned on the place where I ticked.
How can I set the focus to the most left position? (Setting the option to align left gives the alignment correct but doesn’t set the focus).

Similar when I click on a custom “clear” button, I want to clear that input field AND immediatelly set the focus to the most left position.

How can both questions be solved?

Wim


cursor.flp (6.2 KB)

Fairly new to Flipabit, but if I understand you correctly:

You have a text field set to recieve numeric input in a certain format (e.g date format: dd/mm/yyyy) as determined by an input mask.

And you want the cursor placed at the uttermost left of the text field when clicked?

Then you can create an action for the text field as such,

Source: Textfield,
Event: Input>Click
Target: Textfield
Action: Actions>Content>Cursor position (with Constant Value set to 0 under Arguments)

For a custom clear button, the best I can come up with is to create an action for the button as follows,

Source: Button
Event: Input>Click
Target: Textfield
Action: Actions>Content>Undo text (set Count to 4 and Interval to 100 ms under Repeats; as for the date format in this example).

Hope this helps.

Thanks both for the help !


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.