Customization enabling a specific UD control if the Part.ProdCode is one of a list

I know someone has probably done this, but I have been racking my brains and have not gotten any code to work yet.

I have an epiRetrieverCombo for UD03 on the page, and only want somebody to be able to set the value if the Product Code of the part is one of a few entries. I am assuming I will have to use the code to set Enabled to true. I saw where you can use the Rule Wizard to disable a field, but that did not work if you are looking for a Not Contains or other similar rule. Otherwise I would have to put every ProdCode other than the ones I do want it enabled on.

Any guidance? Thanks!

For that type of filtering, I would extend the ProdCode table with a UD checkbox, tick it for the ones you’re interested in, then use that as your filter.

If done exactly this to the OpDetail table to indicate operations which relate to finish product packing.