Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Schweriner/5671492b6ca19e79a491cbcb5c8402bf to your computer and use it in GitHub Desktop.
Save Schweriner/5671492b6ca19e79a491cbcb5c8402bf to your computer and use it in GitHub Desktop.
You cannot use the value of a variable directly as option="{var: 'Label'}" of a f:form.select. This is a workaround to do it.
<f:form.select property="sichtbarfuergruppe"
options="{
0: {
'uid': '{settings.whatEver}',
'label': 'Vorlesungsplaner und Dozenten'
},
1: {
'uid': '{settings.adminUserGroupId}',
'label': 'Nur Vorlesungsplaner'
}}" optionLabelField="label" optionValueField="uid"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment