Hide option when it is already used

Hide option when it is already used

BalaKrishnanDhanuskodiBalaKrishnanDhanuskodi Posts: 45Questions: 17Answers: 0

Happy Morning Team,

I have a field called 'Rank' and this will help me to assign Ranks to People. Now following is my query.

I am looking at hiding option from "Rank fields options" if one option is already assigned to a person, for example if Name: Ashton Cox is assigned with Rank 1, then the Rank Field in the Editor should only display options of 'Rank 2 and Rank 3'. If the Rank 2 is assigned to Tiger Nixon, then the Rank Field in the Editor should only display with only Rank 3. Point is, the value of Ranks should minus/hide the already used option. Please refer the link with format.

http://live.datatables.net/dopukaxi/2/

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    This example from this thread should get you going. Here, an item is being added to the select if it doesn't exist. Your use case is very similar,

    Colin

This discussion has been closed.