statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.07k stars 531 forks source link

Missing "create form" button in control panel (after creating a form) #6217

Closed brendanfalkowski closed 2 years ago

brendanfalkowski commented 2 years ago

Bug description

After you've created one form from the control panel, there isn't a "create form" button like in other admin modules. You can only do it from code.

Screen Shot 2022-06-15 at 10 14 56 AM

How to reproduce

  1. Create the first form in the CP
  2. Follow the wizard
  3. Click "forms" in the sidebar

Expecting to see the blue "create form" button.

Logs

No response

Versions

Statamic 3.3.15 Solo Laravel 9.16.0 PHP 8.1.6 No addons installed

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

regex (default)

Additional details

No response

jasonvarga commented 2 years ago

That button will only appear if the user has the "Configure forms" permission.

brendanfalkowski commented 2 years ago

@jasonvarga Sorry, I'm not sure where that is (I searched codebase and docs site).

This site only has one super-user, so why would you be able to create one form with the GUI, but then immediately after not create another form?

I checked a few other projects and they're all like that (when signed into CP as super-user).

jasonvarga commented 2 years ago

Oh sorry I realize the actual issue here.

It's not a permission problem.

You can only have multiple forms if you're using Statamic Pro. Go ahead and enable it, and you'll get the button.

brendanfalkowski commented 2 years ago

Ah, got it, thanks!

joemaller commented 4 weeks ago

@jasonvarga FWIW, I'm new to Statamic and just burned a bit of time on this exact issue. Glad there's an easy workaround, but maybe there's some way for new Herd/local users to avoid this?

jasonvarga commented 4 weeks ago

The new version of the Statamic CLI tool will ask if you want to enable Pro right from the get go.

We don't really want to be upselling you from within the control panel, like dangling a disabled "create form" button with a "you can click this if you upgrade". We'll think on it though!