Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider Calcutation #786

Open
Frankcatsdad opened this issue Apr 25, 2023 · 2 comments
Open

Slider Calcutation #786

Frankcatsdad opened this issue Apr 25, 2023 · 2 comments

Comments

@Frankcatsdad
Copy link

Hi!

I am using 3 range sliders in a Piotnet form to make a calculation. I want to add each slider together to give an end price.

Slider 1 - range 0-20, 20 steps (i want to assign a value of £15 per step)
i.e.
0 = 0
1 = 15
2 = 30
3 = 45
etc.

Slider 2 - range 0-20, 20 steps (i want to assign a value of £10 per step)
i.e.
0 = 0
1 = 10
2 = 20
3 = 30
etc.

Slider 3 - range 0-250, 6 steps (i want to have the steps below with these values)
0 = 0
25 = 56.50
50 = 112.50
100 = 225
150 = 337.50
200 = 450
250 = 562.50

This is my starting point:

skin: "round",
type: "single",
grid: true,
min: 0,
max: 20,
from: 0,

I hope you can assist me with this.

Many thanks
Martin

@Frankcatsdad
Copy link
Author

Screenshot 2023-04-25 at 18 23 06

@dave-gil
Copy link

dave-gil commented Nov 8, 2023

Hi, @Frankcatsdad, you need to use a Pionet Calulation Field (for the fourth field) adding together the value of each of the 3 sliders.

In the calculation field enter the following:

[field id="slider1"]+[field id="slider2"]+[field id="slider3"]

Tha calculation should update as you adjust the sliders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants