# ActionStyle="Next" Not working!

**URL:** <https://forums.fusetools.com/t/actionstyle-next-not-working/4241>\
**Category:** How-to Discussions\
**Created:** [October 18, 2017, 5:44pm UTC](https://forums.fusetools.com/t/actionstyle-next-not-working/4241 "2017-10-18T17:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_Karmy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cristian_karmy/32/480_2.png) [@Cristian\_Karmy](https://forums.fusetools.com/u/Cristian_Karmy)\
**Post date:** [October 18, 2017, 5:44pm UTC](https://forums.fusetools.com/t/actionstyle-next-not-working/4241/1 "2017-10-18T17:44:48Z")

</div>

fuse 1.3.0 14520 - MacOs 10.12.6

I create a custom `TextInput` that the `ActionStyle="Next"` don’t work when I have something written in my `Input`. In this example if the input is empty and then I press next it works fine but if I have anything on the `Input` it don’t pass to the next `Input`.

Here is a reproduction:

```auto
<App>
            <TextInput ActionStyle="Next" ux:Class="MyInput" TextColor="#000" Margin="0,20" CaretColor="#000" ux:Name="_textInputCore" Focus.IsFocusable="true">
	    <WhilePressed>
	      <GiveFocus Target="_textInputCore" />
	    </WhilePressed>

	    <WhileFocused>
	        <Change Target="textInputRectangle.Width" Value="100%" Duration="0.5" Easing="ExponentialInOut" />
	    </WhileFocused>

	    <Rectangle Height="2." Width="0%" ux:Name="textInputRectangle" Alignment="BottomLeft" Margin="0,0,0,0" >
	        <SolidColor Color="#E21F1D" />
	    </Rectangle>

	    <Rectangle Height="2." Width="100%" Alignment="BottomLeft" >
	        <SolidColor Color="#aaa" />
	    </Rectangle>
	</TextInput>

	<StackPanel>
		<MyInput>
			<Text FontSize="14" Value="Your Text Here" Alignment="BottomLeft" Margin="0,0,0,5" ux:Name="MyPlaceHolder" TextColor="#666" />

			<WhileContainsText>
		        <Move Y="-1" Target="MyPlaceHolder" RelativeTo="Size" Duration="0.5" Easing="ExponentialInOut" />
		    </WhileContainsText>
		</MyInput>

		<MyInput>
			<Text FontSize="14" Value="Your Text Here" Alignment="BottomLeft" Margin="0,0,0,5" ux:Name="MyPlaceHolder2" TextColor="#666" />

			<WhileContainsText>
		        <Move Y="-1" Target="MyPlaceHolder2" RelativeTo="Size" Duration="0.5" Easing="ExponentialInOut" />
		    </WhileContainsText>
		</MyInput>
	</StackPanel>
</App>

```

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [October 19, 2017, 11:48am UTC](https://forums.fusetools.com/t/actionstyle-next-not-working/4241/2 "2017-10-19T11:48:39Z")

</div>

`ActionStyle` only changes what the “action” button (enter key) on the on-screen keyboard should look like. It does not have any effect on what happens when the action button is pressed.

Delegating focus correctly is your responsibility, and you can do that with the help of `TextInputActionTriggered`, like so:

```auto
<MyInput>
    <TextInputActionTriggered>
        <GiveFocus Target="nextInput" />
    </TextInputActionTriggered>
</MyInput>
<MyInput ux:Name="nextInput" />

```

---

<div class="post-metadata">

**Author:** ![Cristian\_Karmy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cristian_karmy/32/480_2.png) [@Cristian\_Karmy](https://forums.fusetools.com/u/Cristian_Karmy)\
**Post date:** [October 19, 2017, 1:59pm UTC](https://forums.fusetools.com/t/actionstyle-next-not-working/4241/3 "2017-10-19T13:59:20Z")

</div>

Thanks! Work perfect
