Validation is not working

Hi,

 

I have one validation rule on my text field. After clicking on submit button validation is working fine but data is getting save in DB.

 

What could be the issue ?

  Discussion posts and replies are publicly visible

Parents Reply
  • validations: {
    rule!validateGrid(
    ri!Data[ri!index].oneCell,
    ri!Data[ri!index].twoCell
    ),
    if(
    contains(
    touniformstring(
    a!flatten(
    {
    ri!mapData.twoCell,
    remove(
    ri!mapData.oneCell,
    wherecontains(
    ri!Data[ri!index].id,
    ri!mapData.id
    )
    ),
    ri!mapData.threeCell,
    ri!mapData.fourCell
    }
    )
    ),
    tostring(
    ri!Data[ri!index].oneCell
    )
    ),
    "This cell is duplicate.",
    ""
    )
    },
    validationGroup: "Submit",
Children