For each row not working

For each row not working

Hi,

Probably doing a misstake, but needed to check.

I have a form that has two states. Either its billable or nonbillable.

  • There is a subform that has products dropdown that has some product and one of them is "Non billable product"
  • If its NONBILLABLE (Main form) then all the products dropdown in each row should say "Non billable product".
  • The rule works for the FIRST entry, but not for the following rows. Cant seem to make it work.

This works for the first entry:

  1. if ((input.Typ_av_faktura  =  "Ingår i avtal")  &&  (Fakturering1.Produkt  !=  "Ingår i avtal"))
    {
        alert "Om ärendet ska ingå i avtalet måste du välja samma på fakturaraden";
        cancel submit;
    }

How can I make the following rule apply for all the rows. I have tried the for each, but its just a mess when I try.

Thx for the help!

/V