I have a use case where I’d like to use the native Unlink Record feature, but I really need a confirmation modal to appear before the record is removed.
It’s very easy for users, especially on mobile, to accidentally tap the unlink button when trying to select another action.
Ideally, this confirmation step would be optional, so it can be enabled only in cases (like mobile use) where accidental unlinks are more likely.
At that point @Brandi_Bullock would you consider using a modal action button that does this for you?
Functionaly it will be the same right?
You’ll just update the record to remove the page record from the linked field, and the modal will act as the confirmation.
Generally, yes — that’s the workaround I’ve been using. The challenge is that since it’s a linked record field, especially in a many-to-many relationship, you wouldn’t want to just “clear” the field, but rather just unlink this one option (which yes I know is part of the action, but more clicks and less clear from a UX).
You don’t need to clear the field, you just need to run the same action as you would if you were linking the records (i.e. set the linked field value to the record page value) and then we (in the API) toggle it, so if it’s already linked, we removed it, if it’s not yet linked, we add it.
But maybe I’m misunderstanding something
I’m saying you can do this with a hidden field, without asking the user for input.
Let me know if you want a loom