I would like to get rid of the ajax "add more items" button at the bottom of a multiple elements form item.
The D8 webform I'm building has a custom composite element with multiple values allowed. The table form display has nice + and – buttons in each row. The "Add x more items" element below the table is not needed.
In the advanced tab, under "Multiple settings", there is only an option to hide the +/– buttons, not the "Add x more items" element.
Additional information:
Webform module version: 8.x-5.0-rc7
YAML Source (excerpt):
fieldset_teilnehmer:
'#type': fieldset
'#title': Teilnehmer
teilnehmer:
'#type': custom_composite
'#title': Teilnehmer
'#required': true
'#required_error': 'Bitte tragen Sie die Teilnehmer ein.'
'#multiple__label': Teilnehmer
'#multiple__labels': Teilnehmer
'#multiple__min_items': '5'
'#multiple__empty_items': '5'
'#multiple__sorting': false
'#element':
teilnehmer_name:
'#type': textfield
'#title': Name
teilnehmer_alter:
'#type': select
'#options':
18: ≥18
17: 17
16: 16
15: 15
14: 14
13: 13
12: 12
11: 11
10: 10
9: 9
8: 8
7: 7
6: 6
5: 5
4: 4
3: 3
2: 2
1: 1
0: 0
'#title': Alter
#edit-fieldname-add-submit
and.form-item-fieldname-add-more-items
invisible.