Usage of form_value?

I am trying to access an attribute from a relation with the filter form_value
the model passed into the form tag has a relation to a company model.
And I am trying to display the name of the company.

form_value('company_id') => it works

form_value('company.id') => it works

form_value('company.name') => it does not work

is it even possible?

thanks guys

Based on what you have provided, it should work. If the ID works, then the name should work too. Could the attribute be missing from the model somehow?

1 Like