Skip to content

metadata fields and setting them to hidden #12216

@DonRichards

Description

@DonRichards

I marked a metadata field as hidden, expecting that it would no longer appear in the Create/Edit Dataset form in the UI. However, when I try to create a new dataset, the field still shows up in the form.

My understanding was that setting a field to hidden should remove it from the dataset metadata UI entirely, but that doesn't seem to be happening in a specific situation.

What steps does it take to reproduce the issue?

Instructions to replicate the issue and a workaround.
From the new Dataverse > Edit > General Information Metadata Fields > Citation Metadata (Required) > [+] View fields + set as hidden, required, or optional > Uncheck Subtitle > Done > Save Changes

From the new Dataverse > Add Data... > New Dataset
Citation Metadata > Subtitle is still viewable


The work around:
The "Required" is the trigger.
From the new Dataverse > Edit > General Information
Metadata Fields > Citation Metadata (Required) > [+] View fields + set as hidden, required, or optional > Check it back select Required > Done > Save Changes

Then try it again
From the new Dataverse > Edit > General Information
Metadata Fields > Citation Metadata (Required) > [+] View fields + set as hidden, required, or optional > Uncheck Subtitle > Done > Save Changes

  • When does this issue occur?
    Creating/editing a dataset

  • Which page(s) does it occurs on?
    Edit dataset form

  • What happens?
    It doesn't hide the field unless it was previously marked as "Required" first.

  • To whom does it occur (all users, curators, superusers)?
    all users

  • What did you expect to happen?
    For it to hide a field in the UI when it's set to hidden.

Which version of Dataverse are you using?
Tested on v. 6.9 build develop-89cf927 (89cf927 is on the develop branch, which is nearing the 6.10 release)
https://beta.dataverse.org/

Any related open or closed issues to this bug report?
N/A

Screenshots:

Broken Configuration:

Image

Working Configuration:

Image

Are you thinking about creating a pull request for this issue?
No, sorry. Just reporting it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions