Marc
Refresh the form after saving in SPA mode
The
->refreshFormData()
is only for the update page, I don't know what your code does, but try:
https://filamentphp.com/docs/3.x/infolists/actions#adding-a-hint-action-to-an-entry10 replies
Refresh the form after saving in SPA mode
In the video it uses debounce and onBlur but I have found some errors and in this case I do not like to use it, the errors are the following:
- debounce: If you put a big debounce, when you are in the field and hit save, if the debounce has not been updated, the previous value is stored, but if you put a small value, it is very difficult to write it, because of slug() , eliminating spaces and all that.
- onBlur: If they are in the field and you click save, it doesn't save, you have to click save 2 times to be able to save or click outside the field and then click save.
In both cases, it gives a bad experience to the user, does not queue or something to avoid this, for example:
- debounce: if you click save, execute debounce first and then save, instead of just saving.
- onBlur: if you click save, run onBlur and then save, instead of just running onBlur without saving.
10 replies
Refresh the form after saving in SPA mode
The problem is the same, with or without the spa mode and the solution is also the same, with
$this->refreshFormData(['slug']);
it does nothing but with $this->fillForm();
reloads the field (and all form)10 replies
How to combine multiple fields into one? Address field
I think this is what you are looking for
https://filamentphp.com/docs/3.x/tables/columns/getting-started#searching
8 replies
How to stop the navigation sidebar from appearing right after login on mobile?
Also encountered the same problem, an alternative, which I think would work better, is to add this:
https://filamentphp.com/docs/3.x/support/render-hooks
17 replies