dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

Setting visibility="submission" results in the submission field being hidden

Open tdonohue opened this issue 3 years ago • 0 comments

Describe the bug If you attempt to sent any submission field to "submission" visibility, it will be entirely hidden in the submission form.

To Reproduce Steps to reproduce the behavior:

  1. Define any field as submission-only (<visibility>submission</visibility>) in your submission-forms.xml. For example:
         <row>
              <field>
                  <dc-schema>dc</dc-schema>
                  <dc-element>title</dc-element>
                  <dc-qualifier>alternative</dc-qualifier>
                  <repeatable>true</repeatable>
                  <label>Other Titles</label>
                  <input-type>onebox</input-type>
                  <hint>If the item has any alternative titles, please enter them here.</hint>
                  <required></required>
                  <visibility>submission</visibility>
              </field>
          </row>
  1. Submit a new Item which uses that form. That field will not be visible in the submission form.
    • NOTE: If you submit the Item and it goes into workflow, that field will also not be visible in workflow.

Expected behavior Fields which have <visibility>submission</visibility> should APPEAR in the submission form, but NOT APPEAR when the item is in workflow approval.

Related work Discovered while testing #1828, but not directly related to that PR

tdonohue avatar Sep 30 '22 18:09 tdonohue