Hi all, I'm sending a JSON to the database with the function:
return Object.fromEntries(
Array.from(StudioForm.acfinder_form.data.form.entries()), );
I only get the last value in the variable data.input_property_type. I need multiple selections from my checkbox question.
{ "input_property_type": "Listed Building", "input_room_type": "Bedroom 3", "input_allowed_external_unit": "No", "first_name": "Ian", "email": "ian@dededede.com", "send_free_guide": "on", "last_name": "Hancock", "phone": "456645645", "message": "Test message ", "consent": "on" } "input_room_type": "Bedroom 3" should have multiple values e.g. "input_room_type": "Bedroom 3, Bedroom 1, Bedroom 2"
How do I achieve this? What am I doing wrong?
Thanks in advance!