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.

Hide Email Options Form Builder

default discord avatar
sandrowegmann2 years ago
6

I'm planning to use the form builder plugin to build simple forms. However, since Emails are not relevant, I'd like to hide it from the admin panel.



I've tried supplying an "emails" field in the formOverrides with a condition function that returns false, but all it does is create a second emails field (and hide it)

  • discord user avatar
    jacobsfletch
    2 years ago
    @900030932617162793

    If you're willing to open a ticket in the form builder plugin repo, we'd be happy to take care of this! We'd be happy to accept a PR as well

    https://github.com/payloadcms/plugin-form-builder
  • default discord avatar
    eug2112last year
    @900030932617162793

    Did you ever find a workaround for this?

  • default discord avatar
    nabil7172last year

    also wondering

  • discord user avatar
    jacobsfletch
    last year
    @900030932617162793

    ,

    @193782753299267584

    ,

    @575884336096870406

    in the 3.0 beta of this plugin we changed the field overrides to be a function instead of an array of fields. That way you can modify the default fields

    in any way

    . This pattern gives you complete control over the schemas that the plugin injects, i.e. the email field conditions. Here's the PR from

    @255674862171848704

    https://github.com/payloadcms/payload/pull/6497
  • default discord avatar
    pnxdxtlast year

    You mean

    @858693520012476436
  • default discord avatar
    sandrowegmannlast year

    😂

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.