Change the number of slider tick points and slider labels

I am conducting an experiment on financial investment and need participants to select numbers. I plan to use a slider to achieve this function.

I referred to WakeCarter’s Interactive Slider.

But now I’m facing some issues. Among them are two sliders, one is custom and the other is the actual slider. The custom slider seems to have a problem. That is, it requires moving first before you can click and submit. If you don’t move initially, you can’t submit. I think this is quite annoying. How should this be modified? Secondly, I need to implement an important function. During each trial, the tick and label are different. How can I achieve this? Which slider should I use for this?

The version of Psychopy I am using is 2021.2.3, and it needs to be run online. If someone could answer my questions, I would be extremely grateful.