How can I make the “Duplicate” button open a draft and prompt the user to save instead of saving immediately? #13405
                  
                    
                      VinaySanagapalli
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Goal: When an editor clicks “Duplicate” on a record in one of my collections, I want Payload to:
Create the duplicate as a “draft” (so it doesn’t get published immediately).
Open the new draft in the editor.
Optionally show a confirmation or reminder to the user to click “Save” (instead of auto-saving on duplication).
Any pointers, code examples, or existing discussion threads covering this use-case would be hugely appreciated! Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions