dnwjn / nova-button

A Nova package for rendering buttons on different views.
MIT License
10 stars 6 forks source link

Experiencing form submission error with button on create page #38

Closed ReinardGans closed 5 months ago

ReinardGans commented 9 months ago

I currently have this form submission page with a validation button which should execute some logic when clicked. (see view below) However, when submitting the form I receive an error and are unable to submit the form. The only error I receive is on the UI and it reads: "There was a problem submitting the form"

Here is the code for my button:

  Button::make('Validate')
      ->style('primary')
      ->label('Validate')
      ->hideFromIndex()
      ->showOnCreating()
      ->showOnUpdating(),

FormSubmisison

dnwjn commented 9 months ago

Hi @ReinardGans!

Could you provide me with some more information, such as:

Thanks!

ReinardGans commented 9 months ago

Hi @dnwjn I am currently using "dnwjn/nova-button": "4.0", "laravel/nova": "~4.0", and Laravel Framework 10.43.0 . Also, I have added the fill resource in a zip file below. DataAttribute.zip

dnwjn commented 9 months ago

Hi @dnwjn I am currently using "dnwjn/nova-button": "4.0", "laravel/nova": "~4.0", and Laravel Framework 10.43.0 . Also, I have added the fill resource in a zip file below. DataAttribute.zip

I've set up a fresh Laravel project with Nova and this package, using the versions you mentioned. I'm unable to reproduce your issue. I've also gone through your Nova resource but I'm not seeing anything weird. Because of this I'm not finding any reason it's caused by this package.

Have you tried submitting the form with all fields removed except the button, and then slowly adding the other fields one by one? Maybe it's caused by another field, or maybe another field doesn't play nicely with the button. It's hard for me to tell.

github-actions[bot] commented 5 months ago

Hey there! 👋 It looks like there hasn't been any activity on this issue for the past 14 days. To keep the issue tracker organized and ensure that important topics aren't overlooked, I'm marking this issue as stale. If you still believe this is an active issue or have any updates to share, please feel free to comment below, and I'll be happy to revisit it. Otherwise, I'll close this issue after a grace period. Thanks for your understanding and for helping me keep this repository clean and efficient! 🚀

github-actions[bot] commented 5 months ago

This issue has been closed because of inactivity.