I have a simple form with different types of fields. On submitting the form, I just print the values submitted.
It looks fine for a few fields, however it doesn't work as expected for multiselect and checkbox fields.
For multiselect and checkboxes only latest selected values is printed. Instead, I want an array.
Any suggestions on how to do this?
Also for the file attachment field, how can I add the filelist to the original object (Created using FormBuilder & ControlGroup) with rest of the field values?
this.SampleForm = formBuilder.group({
        title: ['', Validators.required],
        description: ['', Validators.required],
        countries: ['', Validators.required],
        attachment: ['', Validators.required],
        continents: ['', Validators.required]
    });

