Validate grid items against drop down values.

Hello guys,

            I've an interface where I need to validate a grid items added by user in a gridfield and once they submit they become available for selection in the dropdown on the same interface where once they select the item they can submit finally.

 

            Has anyone ever had tried validating add/removable grid items against the existing dropdown (populated by the same gridfield) to make sure they do not enter the "duplicate" values?

 

Thanks,

Nick

  Discussion posts and replies are publicly visible

Parents
  • As per your it's just a selection of a radio button that loads the grid, if there are no existing items they may be added.
    I would suggest you to use two variables one is for selectingValues another is for already selected values. So, upon clicking on radio button you can check in the already selected values list for the clicked item. then you can say display a message "This item already selected". If you don't want to show the message and still want to maintain the unique list items, simply apply the union() on the both selected lists.
Reply
  • As per your it's just a selection of a radio button that loads the grid, if there are no existing items they may be added.
    I would suggest you to use two variables one is for selectingValues another is for already selected values. So, upon clicking on radio button you can check in the already selected values list for the clicked item. then you can say display a message "This item already selected". If you don't want to show the message and still want to maintain the unique list items, simply apply the union() on the both selected lists.
Children
No Data