I am trying to create a button on a list view in salesforce that, when clicked, will open a popup dialog of sorts. I would expect the button to be at the top of the list view, directly alongside the 'New' button, and the dialog to look similar to the dialog / popup that appears when clicking 'New' (with different content and fields of course). The goal is that the popup would contain a dropdown list, allowing the user to select a 'List__c' record, and then click a 'Finish' button. When clicking finish, all the checked records from the list view (in this case they are account records) are created as related fields to new entries on the 'List__c' object. Just to summarize, this means that there has to be a way to pass all the checked values, AND the value selected on the drop down.
Can anyone give me any direction on this? First, would it be bad practice to implement a new solution using visualforce (and therefore the button on the list)? Or, ideally, is there a way I can use the button to call a LWC from a list view (since actions don't work for the list view)? Also of thought, if the only way to do this is the call a visualforce page with the button, is there a way I could use the visualforce page to call the LWC? Also, a concern I have with the Visualforce page is that I want this popup to remain over the current page and not redirect.
Any thoughts on the best approach for this would be awesome. Thanks!