Duplicate check in a dynamic grid layout

Hi, I have a text field in dynamic grid layout. How do i check for a duplicate entry and generate a error message in validation?

(I'm storing the entries from the text field in a rule input of cdt type)

  Discussion posts and replies are publicly visible

Parents Reply
  • Hi Arpit,

    That was a really short version of that and worked completely fine. There's just a slight change for multiple cdt though.

    For multiple cdt instead of replacing fv!index we can replace the index function all together with the column name.
    Here's what it it looks like for me for multiple cdt,

    if(count(wherecontains(fv!item.(columnName), ri!array.(columnName))) > 1
    ,"Duplicate",
    {}
    )

    Please ignore the brackets with column name.

    Regards,
    Mohit Shah
Children
No Data