added `inputName` config and creating hidden input field for
each of the items selected.