-
JustforsmilesDemandé le 28 août 2023 à 23:40
bonjour, je souhaite répartir des points (nombre donnée) sur des options.
exemple de question: répartissez les 100 points sur les options suivantes:
option 1: voiture [nbre de points]
option 2: moto [nbre de points]
option 3: vélo [nbre de points]
option 4: marche [nbre de points]
le total des points ne peux pas dépasser les 100 (= le système doit vérifier / calculer les points restants).
je n'ai pas trouvé comment pratiquer. pouvez-vous m'aider?
merci
-
Gemmhel Jotform SupportRépondu le 29 août 2023 à 05:48
Hi Jérôme,
Thanks for reaching out to Jotform Support. Unfortunately, our French Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.
Now, let me help you with your question. You can add calculation values to a Multiple Choice element. Let me show you how:
- In Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Basic tab, scroll down to Multiple Choice, and drag and drop a Multiple Choice element to your form.
- Once added, click on the Gear icon to open its Properties.
- In the menu that opens on the right side of the page, add your field name under the Field Label option, and enable the Require option to set the field required.
- Next, go to the Options tab.
- Under Options, enter the option you want form fillers to select from.
- Toggle On the Calculation Values and in Calculation Values enter the value for each row or paste a set of line-separated values from your clipboard.
- For other options, you can go to the Surveying and Advanced tab.
Next, you'll need to add a Form Calculation widget to perform calculations on your form. Here’s how to do it:
- In Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Widgets tab, search and select Form Calculation.
- Once added, click on the Wand icon to open the Widget Settings.
- In the settings pane on the right, use the Add Field button to add the Multiple Choice field.
- Once you’re done, click on the Save button.
Check out the screencast below to see my results:
We also have a guide about How to Assign Calculation Values and How to Perform Form Calculation Using a Widget that you can check out. If that’s not exactly what you’re looking for, can you explain a bit more, so I can help you better?
Give it a try and let us know how it goes.
-
JustforsmilesRépondu le 29 août 2023 à 07:21
Thank you for your answear. But it is not exactly a solution for my problem.
what i want to do: the user has 100 points to give. he can choose, which item he want to give them.
please have a look at this demo:
-
Camila Jotform SupportRépondu le 29 août 2023 à 10:08
Hi Justforsmiles,
Thanks for reaching out to Jotform Support. I suggest using the Numeric Slider, Let me show you how to do it:- In your Form Builder, click +Add Form Elements.
- Next, select Widget and scroll down to Numeric Slider.
- Then click Widget Settings and under General change the maximum value to 100.
- You can also change the Theme and click Update Widgets.
Next for the Form Calculations, make sure you have the same calculations to work it on your end:
- In your Form Builder, click +Add Form Elements.
- Next, select Widget and scroll down to Form Calculations.
- Now, click Widget Settings add the parenthesis (), and click Add Field.
- On Add Field, select Item 1 or the name of the field, put +, and after that minus it to 100.
- Lastly, click Save.
Check the results below:
You can check out this Demo Form so you can try it by yourself. If you want to clone the form, you can check out this guide about How to Clone an Existing Form From a URL.
We also have a guide about the How to Perform Calculation Widget that you can check out.
Give it a try and reach out again if you have any other questions.