Retrieving values from an Active Choices Reactive Reference Parameter

I am currently using an Active Choices Reactive Reference Parameter (from Active Choices plugin) in a declarative pipeline script. Reacting to a couple of parameters called BRANCH and FULL_BUILD, it loops through the output of a ‘git’ command and creates a HTML checkbox for each line. Below is the ‘parameters’ part of the pipeline:

Understandably, when I query the value of this parameter (MODULE_LIST) in the pipeline steps themselves, I get back something like ‘true,true,false,false,false,false,true’ (depending on which boxes I have checked).

I would like to find a way of knowing the name of the text box (ie. the text next to the checkbox in the UI) as well as it’s value. Is there a way to do this? I tried using JavaScript to update a hidden textbox with a string of what is selected and the reading that as the ‘value’ but I cannot get it working.

Anybody have any suggestions as to the best way of going about this?