Model Repetitor Field


i’m writing a website that show some products selled in different shops.

so i have two tables doing this : products and prices, In my admin panel for each product i can add n prices using a javascript script befor submitting the prices.

so i’m asking if there is a way to validate that all prices are not empty in the product model.(view attachement)

i hope a was clear


Yes, use the validation rules and set the fields to ‘required’.