Dynamic field

Hi, i have got Attribute called result which looks like this:
    protected function result(): Attribute
    {
        return Attribute::make(
            get: fn () => $this->type === Type::Value
                ? $this->pivot->result_int
                : $this->pivot->result_varchar,
        );
    }

Now in filamentphp form i want to have a conditional field; meaning when the type is int i want it to display TextInput and when it's varchar Select, i know this can be done when using a form, but in my case i want it to be in the table with the field TextInputColumn.
Was this page helpful?