Is it possible to write records to a collection for each item selected?
I have a collection of locations.
I have a form that has 3 data collection points that need to be written to each location, but only the locations that are selected using the multiselect dropdown.
So you have a form which has 3 fields to input and also a multiselect dropdown which is connected to your locations collection. Now user input data into the 3 fields and select locations from the dropdown, then that data should get saved in another collection and each selected location stores as it’s own record with that 3 fields data, am I correct?
Yes. The 3 Input Fields are filled in by the user. The Multiselect is then used to select the locations to which the user wishes to write to. When the user clicks the “Save” button, I would like the button to write to the “Locations Data” collection with the data the user input into the 2 Input Fields.
All in All, there are 2 collections:
Locations
Locations Data
Thank you for the reply, and can the Multiselect Dropdown work in this capacity?
When the user selects a location, you can create the record with other fields data but then if the user deselected that location, the component cannot access that record data and couldn’t delete it. One solution would be using another screen to delete that record on deselecting. (as a deselect action, link to a loading screen which includes lottie and a hidden countdown as a list which founds that record, and delete that record, and link back ) Or you can use a custom action which calls a webhook in MAKE to do that same steps.
Another solution would be using a custom list to show the locations with two buttons (one to select and other one as a list with a filter to find the record and delete it). Or else you could hold the 3 fields data along with the selected locations in a m2m relationship as temporally and when clicking the save button, a custom action fires up which calls a MAKE scenario that find the user’s temporally data and do a batch record creation process with that data.
Do you meant a video tutorial? Additionally, that method would cost more credits in MAKE when more users starts using the app and selecting more locations.