This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm wondering if what I am trying to do can be accomplished out-of-the-box, or if I will have to build a custom formwidget...
I have two models, each with a
description field of the type
belongsTo ModelA, and I have a form field in ModelB of type
relation so that the user can select a ModelA. The functionality I am looking for is such that, when the relation field changes in ModelB's form, the
description field updates to copy the description from the selected ModelA.
The point is, the description for ModelB defaults to be the same as the selected ModelA, but the user can optionally change/edit it. I'm not sure I've explained this well enough, but I'd be happy to clarify if anyone wants to take a stab at helping me out! :) Thanks.
1-1 of 1