I would like to get option label from dropdown placed in repeat block. How can I achive that?
I never got Form.getSelectionLabel method working in a repeat. It works for dropdowns not in repeats though. The alternative solution that worked for me is as suggested in How do I retrieve the label instead of the value?:
label = Form.getItemFromPath('Form.data.repeat[index].field');label = Util.find(label.properties.options, "value", Form.data.repeat[index].field);
If you want the label (not the value) of the dropdown you can use the Form.getSelectionLabel method.
As seen in this question/answer How do I retrieve the label instead of the value?
If you want to insert the option label into a Text Display comonent, do this: