Fill input with checkboxes state