garethfrost
FileUpload validation not working
Hey,
I have a wizard set up with skippable steps, in one of the steps i have a FileUpload component which has minFiles(1). When I fill out the form I am able to save without a file added and no validation errors throw.
I've tried making the wizard not skippable but that didn't work, I have tried required() and the asterisk shows but again I can save without any validation errors throwing. I have also tried custom rules and using beforeValidation on the wizard step but neither worked either.
This is my code:
5 replies
use CMS authMiddleware
I am using Statamic CMS hand in hand with filament, statamic allows admins to impersonate users however, i cant figure out the auth to allow the admin to impersonate the user on statamic and then move over to the filament side and still be impersonating the user (at the moment it logs them out).
I have tried using statamic authGuard in authMiddleware() in the adminPanelProvider and defining the authGuard but neither have worked.
Is it possible for this to work?
10 replies
Save wizard form without all steps completed
I have a wizard with 8 steps and the last 2 steps are restricted to a higher level of user.
Im having an issue where if a regular user completes the first 6 steps and clicks create, the form is not saving - is it possible for the form to be saved at step 6 and then the high user can edit steps 7 and 8?
13 replies