In case the item list for the input box is long, it might be easier to create an array before using the Input.getItem() command. In the example, first an array containing the regions of interest is created with the name "roiList":
function Item_input_box_using_array() {
var roiList = ["V1","V2","V3","VP","V3A","V5"];
var userResponse = Input.getItem("Please select the region of interest", roiList);
BrainVoyagerQX.PrintToLog("Selection region of interest: " + roiList);
}
The resulting drop-downlist is now quite long:
The input box can also have a default answer: