add javascript on form
I would like to add my custom javascript on the form, how can I do that? I cannot find it on Stackoverflow or Gpt.
What I want to try to achieve is when text inputs A and B are filled, the text input C will be filled with A + B.
I understand it's really simple, but I still cannot find how can I add a custom JS on forms
Thank you.
Solution:Jump to solution
Or you can use this,
https://filamentphp.com/docs/3.x/forms/advanced#generating-a-slug-from-a-title
into both of your a and b field and set c field whenever any of a or b field update....
5 Replies
I don't have any experience on Laravel (still new on Laravel) & filament
Solution
Or you can use this,
https://filamentphp.com/docs/3.x/forms/advanced#generating-a-slug-from-a-title
into both of your a and b field and set c field whenever any of a or b field update.
Thanks @Ridoy ,
I will check it now.
Thanks @Ridoy it worked π