Assuming Data is being pulled by associating a Choice Field with a static list of options in a Choice list example ['A', "B', 'C', 'D'].
Now below are the following operations I would like to perform on this choice field:
1- Check whether a specific value already exists in the Choice Field.
If Yes- then make it the default one to be displayed in the Choice Field.
2- Check whether a specific value already exists in the Choice Field.
If Yes- then delete that value from the 'Choice Field' so that it does not not get displayed
3- Retrieve a collection/list of all values in the choice field and then iterate over them using a loop and make some modifications.
How can these operations be performed using lua scripting?