Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Moving the Forms and Form Submissions collection to a different group?

default discord avatar
2me2youlast year
3

The form builder plugin takes care of creating the collection for Forms and Form Submissions, however, I can't seem to find a way to put them in a different group in the sidebar. I assumed I could pass the group property in the FormBuilder config as part of the config parameter but that doesn't seem to work. Is this possible?

  • default discord avatar
    ritsu0455last year

    did you try with that?


    formOverrides

    and

    formSubmissionOverrides

    should work


    import { buildConfig } from "payload/config";
    import formBuilder from "@payloadcms/plugin-form-builder";
    
    buildConfig({
      plugins: [formBuilder({
       formOverrides: {
          group: "My group"
       },
       formSubmissionOverrides: {
         group: "My group"
       },
      },
     )],
    })
  • default discord avatar
    2me2youlast year

    Putting the group inside the admin property works. Thanks a lot! 🙏

  • default discord avatar
    ritsu0455last year

    i forgot that you also need to put it inside admin too, but it's good that you solved it.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.