Berekening bij multiselect veld

  • mvdent
    Gevraagd op 11 september 2023 om 05:47

    Goedemorgen, ik loop tegen een probleem aan bij de berekening van een multi-select veld.

    In een van onze formulieren hebben we een aantal multi select velden met waarden waar een berekening achter zit. Wanneer er meerdere velden geselecteerd worden, worden de waarden in de berekening gescheiden met een komma. Kunnen we dit wijzigen in een "&" teken?

  • mvdent
    Geantwoord op 11 september 2023 om 05:53


    Berekening bij multiselect veld Image 1 Screenshot 30

    Berekening bij multiselect veld Image 2 Screenshot 41

  • Annaliza_O Jotform Support
    Geantwoord op 11 september 2023 om 08:23

    Hi Felix,

    Thanks for reaching out to Jotform Support. Unfortunately, our Dutch 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 Dutch, 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. I cloned your form and everything works properly. Checkout the screencast below:

    Berekening bij multiselect veld Image 1 Screenshot 20

    Can you go ahead and try it again and let us know how it goes? If that’s not exactly what you’re looking for, can you explain a bit more so I can help you better?

  • mvdent
    Geantwoord op 11 september 2023 om 08:42

    Hi Annaliza,

    Did you clone the right project? I'm working on the "Badkamerventilator" keuzehulp.


    What i'm trying to do is create an URL on the base of the different variables (choices). This works fine when it's possible to only select one option. It carefully "calculates" the URL based on this:

    Berekening bij multiselect veld Image 1 Screenshot 40Berekening bij multiselect veld Image 2 Screenshot 51

    As you can see, the different questions are seperated by a "&" in the calculation.


    The problem occurs when i have a multi-select field like this one:

    Berekening bij multiselect veld Image 3 Screenshot 62

    When multiple options are selected, it wants to add the values of "calculation values" to the URL, but it seperates the values from this question with a "comma".

    When only one option is selected here, it works fine.


    Does this explain a little more?


    Kind regards,

    Felix

  • Christopher Jotform Support
    Geantwoord op 11 september 2023 om 11:03

    Hi Felix,

    Thanks for getting back to us. Multi-selection will always be comma-separated which is why you have encountered this issue. Unfortunately, I was unable to find a workaround for this.

    Let us know if there’s anything else we can help you with.