const combobox = document.createElement('select');
const values = ['red', 'green', 'blue', 'white', 'black'];
values.forEach(e => {
const option = document.createElement('option')
option.innerText = e;
option.value = e;
combobox.appendChild(option)
});
previouslyCapturedForm.appendChild(combobox);