how to build .formParamSeq or .formParamMap with tuple containing two or more values

post

.exec(http(“GetVal”)
.get("/FilingPk=${FilingPK}")
.check(CommonChecks: _)
.check(regex(""“type=“checkbox” name=”(.
?)" value="(.*?)" /><td""").ofType[(String,String)].findAll.optional.saveAs(“Get_tuple”))
)

Get_tuple looks like this - some time results contains 5 , sometime it contains 50 values
List((Type$chk_00001OP,Y),
(Type$chk_00001IR,Y),
(Type$chk_00001GS,Y),
(Type$chk_00001MP,Y),
(Type$chk_00001CR,Y),
(Type$chk_00001LS,Y)
)

I would like to use the above Get_tuple in the next POST as .formParm

I would like to use randomly one value and/or use all the values

how to build .formParamSeq or .formParamMap with Get_tuple for random and all values

POST
.exec(http(“U4_Initial_SROSave”)
.post(/FilingPk=${FilingPK}")
.formParam("__EVENTTARGET", “”)
.formParam("__EVENTARGUMENT", “”)
.formParam(“ctl00_ctl00_cphMainContent_ScriptManager1_HiddenField”, “”)
.formParam("__VIEWSTATE", “”"${viewstate}""")
.formParam("__VIEWSTATEGENERATOR", “”"${viewstate_generator}""")
.formParam("__EVENTVALIDATION", “${EventValidation}”)
.formParam(“LinkPage”, “”)
// .formParamSeq(Seq("${Get_tuple}"))
// .formParamMap("${Get_tuple._2}")
.formParam(“ctl00$ctl00$cphMainContent$formPlcHldr$btnSave”, “Save”))

Thanks in advance.

You’d have to pass a function, Gatling EL is too limited for this.