Change values of slider and input field

Hi, I have an input field and a slider. I want the value of the input field to change when the slider is moved (so the value should always be the value of the slider). But I also want the slider to change, when a number is typed into the input field. It should work in both ways properly.

A already tried it with the initial content, but it doesn’t work in both ways.

Does somebody know how to do that?

Best wishes
Jakob

image

Hi there, @Jakob1… following on from your other post, set the initial content of the input to the custom state’s value. Then, add another workflow event that says when the input’s value is changed, update the custom state’s value to the input’s value. I just tested it and it appears to work the way you want, so give it a shot.

Best…
Mike

1 Like

Ok thanks :smiley:

1 Like

Everything works out properly, the only issue is that the slider doesn’t change with the value. So the value of the input field and the value of the slider change, but the slider stays the same until I move it again.

Do you know how to fix this issue?

image

Just tested this… put everything in a group with a content type of number, and set the group’s data source as the custom state. Then, in each of the workflows where an input is changed, have the last step be the Display data action, and display the custom state in the group.

1 Like

Thank you very much, it works properly :smiley:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.