Bubble Forum
Using 1 popup for multi data type delete actions
Need help
boston85719
July 22, 2024, 5:53am
2
It can and I have.
the popup should have no content type.
the popup should have a set of custom states for each type of data you would allow the user to delete. If Bubble ever gets around to fully realizing new feature releases, then we could use the properties feature for this but it is not possible to run a workflow action to set the value of the property. But if you are using the popup in a place where you can set the property value (think in an RG, the property could be set to ‘current cells’ thing’), you can use properties but custom states work best as we can run an action to set the state.
Set conditionals on the visual elements so your messaging is appropriate for each type of data to be deleted. These conditions would be something like ‘popup custom state for data A is not empty’…this is done for each custom state/data type the popup is used for.
Set the workflow action using the button that triggers the delete actions. Have multiple actions, one for each data type with the condition to only delete it when the ‘popup custom state for data A is not empty’…similar to conditions on the visual elements, you do this for each data type to be deleted.
When you are using the popup on the page, you will need to run the action to set state for the data type to be deleted. The custom state would be the actual ‘thing’ to be deleted.
When the popup is closed run the action to clear the custom state values.
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Reusable popup for deletion confirmation
Need help
4
1735
June 2, 2021
Delete thing from unique ID set in custom state
Database
2
618
January 9, 2023
Delete, workflow, buton
Need help
18
583
September 29, 2023
Confirm delete data type? Please?
Idea
5
387
September 20, 2022
Disabled the popup that comes up when deleting data from Bubbles Data entry view table
Need help
3
712
February 13, 2016
Forum
Academy
Marketplace
Showcase
Pricing
Features