The group (in this example oairecerif.person.affiliation) consists of multiple (4) form elements. At least one of them is marked as required:
<field>
<dc-schema>oairecerif</dc-schema>
<dc-element>person</dc-element>
<dc-qualifier>affiliation</dc-qualifier>
<label>Organisation name</label>
<input-type>onebox</input-type>
<repeatable>false</repeatable>
<required>You must enter at least the organisation of your affiliation.</required>
<style>col-xs-12 col-md-6 col-lg-3</style>
<hint />
</field>
The UI does not allow to delete the "last row" of a group as you can see in the screenshot below (trash icon is disabled):
This means (in this example) that you are not able to delete all affiliations of an existing researcher profile: one row in the group remains and as (in this example) oairecerif.person.affiliation is a mandatory field, you cannot delete all form field values in the remaining row.
@abollini , @atarix83 I'm not sure how a robust fix should look like. An easy option could be to fully remove the disabling of the trash button and allow the user to delete all rows in a given group. If you agree with this proposal, I'll create a PR for that.
Bug description
DSC7 comes with several inline groups in
submission-forms.xml
, e.g.The group (in this example
oairecerif.person.affiliation
) consists of multiple (4) form elements. At least one of them is marked as required:The UI does not allow to delete the "last row" of a group as you can see in the screenshot below (trash icon is disabled):
This means (in this example) that you are not able to delete all affiliations of an existing researcher profile: one row in the group remains and as (in this example)
oairecerif.person.affiliation
is a mandatory field, you cannot delete all form field values in the remaining row.@abollini , @atarix83 I'm not sure how a robust fix should look like. An easy option could be to fully remove the disabling of the trash button and allow the user to delete all rows in a given group. If you agree with this proposal, I'll create a PR for that.