Model not inserted due to validation error working with dropdown list

Hey folks!

I have a question, trying to reach data from database via dropdown list and creating new record on table. When I hit the save button nothing happen.
From the log i got this:
Here is the line he refers too:
I think i have something with my rules, but i don’t know what… That’s how it looks like at the moment:
And that’s my form:

Any idea what to check, or what should i doo?

You need to add valid teacher_id which is present in Teacher table or may be invalid subject name.

1 Like

Thanks for your comment. Help me figure it out that I have typo in my code. The main problem vas i forget to put one label into my form which was required by rule… :sweat_smile: