This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

algebreico
algebreico

In my backend I have a form which correctly displays an 'hasOne' relation with another model in a dropdown widget. How can I set up the default value for the dropdown if I have the id of the related model? Thank you for your help

behiry
behiry

I also need to do this

epsilonrequiem
behiry
behiry

Just use this attribute: emptyOption: 1 Where 1 is the default id

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.