@experimentor I apologize for the lack of clarity. I agree that I don't want to automatically save any additional data within the database. I want to simply hydrate an empty create form with the previously supplied information.
I'm struggle with two aspects of this implementation:
- How do I copy the previous data into a new create screen?
- How do I add a button at the bottom of the form with the other buttons?
To the first point, I have started to run down the rabbit hole of leaning on the existing replication features and hooking into the redirectAfterCreate function to simply redirect the user to the /resources/resource-name/' . $resource->id . '/replicate URL. This seems to work very well.
I'm now stuck on how to actually identify the user's intentions to "create and replicate". I have this working with an additional field in my fields that is simply a toggle asking the user if they want to run this function on save. This works, but I hate the UI/UX. Doing it this way hijacks both existing save buttons in the capacity that regardless of which button you click ("Create and Add Another" or "Create"), if the user has toggled this value to TRUE then the user is taken to the replicate URL. I don't love this at all.
So this brings me to my #2. I really want to eliminate this toggle and add a button with the other save buttons so that this option is more clear for the user and doesn't hijack the other buttons. How do I add buttons with the other save buttons and have them carry the information I need to fire this replication activity in the redirectAfterCreate function?