Passing value of input to a class
I'm trying to pass variable to to a class like this, but all I'm getting back is reference to current class.. is there a way to do this..?


3 Replies
And my other class where I'm dumping this value:

Not directly the answer, but you may refactor your code on my example from YouTube: https://www.youtube.com/watch?v=gnXKg9sO6_I
Here's the main screenshot you can start with:
Filament Daily
YouTube
Filament: Auto-Suggest Form Field Value with AI (OpenAI Example)
An example of how to enable OpenAI API to fill the field value based on the value of another field.
Source code: https://filamentexamples.com/project/open-ai-api-to-fill-form-select-with-suggestions
Related tweet about job research: https://x.com/PovilasKorop/status/1856266188214436124

Guess this would work, I've refactored my code to something else now which is fine also, but thanks for answer.