I’m trying to create a number input box with an up/down arrow to increment the number like so:

I saw this post but it doesn’t explain how he implemented it:
I’ve spent over an hour trying to figure out how to implement this with set state etc., but to no avail.
Can somebody help me out here? Any tutorials? Any simple plugins where I can just have an increment number box on the page?
Thanks
1 Like
hanan1
2
hi @khurram.aziz !
no worries, it is pretty simple.

-
First add a number input and set up as the screenshot below: add a number custom state and use that for the input’s initial content:
I added min/max values I don’t know if you need any.
-
Add a group with two arrow icons (up&down) and group it with the input.

-
add a workflow that increases the content by 1 only when the input’s value is < 10
-
add a workflow that decreases the content by 1 only when the input’s value is > 1
-
for better usability, you can add a condition that communicates the invalid state for the arrows when the value = 1 or 10

hanan1
5
@khurram.aziz yes, it looks like you missed the first steps in my initial reply:
glad you got it though
1 Like
system
Closed
6
This topic was automatically closed after 70 days. New replies are no longer allowed.