Enumerations: ----------------- | value | label | |-----|------| {% for enumeration in enumerations.Items %} | {{value}} | {{label}} | {% endfor %} Flow_0322grc Flow_1pvx3ro Flow_07a2oxo Flow_1nenbjs Flow_1p5fxob Flow_1p5fxob Flow_148h40r # Build Enum List enumerations_items_list_cnt = enumerations["Count"] enumerations_list = [] enumerations_list.append({'label': 'Add New', 'value': 'add'}) for n in range(0, enumerations_items_list_cnt): if enumerations_items_list[n]["Subject"] == "Enumeration": enumerations_list.append({'label': enumerations_items_list[n]["Label"], 'value': enumerations_items_list[n]["Value"]}) Flow_148h40r Flow_0otubfa Flow_0d8570g Flow_0d8570g Flow_06nsc7t Flow_0i6hbp9 Flow_0i6hbp9 Flow_0322grc if whichEnum == "add": addSubject = "Enumeration" else: matched = [ d for d in enumerations_list if d.get('value') == whichEnum ] addSubject = matched[0]['label'] if matched else None Flow_1w2k8v1 addValue = "" addLabel = "" Flow_1pvx3ro Flow_17i0vic Flow_07a2oxo Flow_1euuoyf Flow_06nsc7t Flow_1u6l44m Flow_17i0vic Flow_1w2k8v1 Flow_1euuoyf whatNext == "Exit" whatNext == "Add another enum for the same subject" Flow_1u6l44m Flow_0otubfa Flow_1nenbjs whatNext == "Add an enum for another subject"