Using Enums to decouple dynamic select options and fields
I get the thing with options, but since i'm also using it for dependent field might as well add it to enums using custom method like getFields. My initial thought is to make it easier when adding new options along with it's field (it's a template thing)
I dont know if this is the way or is there anything else i should consider? should i decouple the fields to yet another file?
0 Replies