Hi everyone! Please help me out with this question.
I have one Multi selection Field inside a Form Component that has been divided in 12 different checkboxes, each corresponding a month from the year. If I click in two of them (March and September) and send those checked items through a flow to a script component with an input called range in order to check what values I get from the checkboxes, I get the following:
--->range[scu8w.range] String (2 elements)
My question is is there any way, using the script component, to retreive those values (March and September) from the Multi Selection Field Array and transform them to numbers, something like this:
if (range == "March")
variable1 = "3"
if (range  == "September")
variable2 = "9"
variable3 = variable1 + variable2
What I need is to get a range depending on those months and translate them to numbers to do something somewhere else. Like in the example above, if I check on March and September I would like to return 39. If I check January and April, I would like to return 14, If I check January and February the return value should be 12 and so on.... Any help would be massively appreciated. I've tried so many things but I can't get those months from the array.