I have a few checkboxes displayed on a page which need to be saved to the server as a multi-select picklist. How do I do this? The checkboxes value is set to true or false. But the picklist has different values and is a comma seperated string i believe(?). Does anyone have an example of how to do this with javasctipt? I still need to construct the controller so any help with this would be helpfull. Here is some example code of the checkboxes:
<label class="slds-checkbox">
<ui:inputCheckbox class="slds-input" value="{!v.identityRequest.Sales_Management__c}" change="{!c.onChange}" />
<span aura:id="salesManagement" class="slds-checkbox--faux"></span>
</label>
<label class="slds-checkbox">
<ui:inputCheckbox class="slds-input" value="{!v.identityRequest.Service_Management__c}" change="{!c.onChange}" />
<span aura:id="serviceManagement" class="slds-checkbox--faux blackColor"></span>
</label>
<label class="slds-checkbox">
<ui:inputCheckbox class="slds-input black" value="{!v.identityRequest.Service_Technician__c}" change="{!c.onChange}" />
<span aura:id="serviceTechnician" class="slds-checkbox--faux" ></span>
</label>