Passing controller variable to form

Hello,
I have done some forms based on fieldsets in my project. Now when calling my form I would like to pass the controller variable and use it in my form for other purposes. Or in my form factory, how can I access the route parameter retrieved in my controller ?

I might be wrong, but why not pass parameters to the form’s constructor by controller?

I call my form via factories. this is why I cannot pass parameters to the form’s constructor in my controller

Do not break the borders, i.e. do not try to get the request outside of controllers or request handlers.

Please check if a setter method is an option for your use case.