Can a button linked to a database point to diverse action types (URL, Document, etc)?

I have a button in a repeater connected to a dataset. The button’s action is linked to a URL field in the dataset.

I would like some instances of the button to point to Wix documents in my document collection. I cannot figure out how to do that. The Button’s Velo reference says that its URL can be of the form wix:document// and I can successfully do that in a standalone test button, but I do it through the GUI Editor by setting the action type to Document and then picking a document. I can’t do that in the repeater because I want the buttons to be of mixed types.

I tried just populating some database rows with a document-type URL in the URL field but this does not work. From what I can see, if the database field type is URL it forcibly prepends “http://” to the beginning of any row that doesn’t have that already.

Is there a way I can do this? A button in a repeater connected to a database where the button actions are of dissimilar types?

Another approach might be to have two fields in the database, a URL field and a Document field, and write code to figure out which one is populated and then set the button action accordingly, but I also do not see in the Button reference documentation how I would override the action type of the button.