Stream: troubleshooting

Topic: โœ” Default value for a string field in Metadata Customization


view this post on Zulip Mohsen Jafari (Mar 13 2024 at 12:56):

How can I set a default value for a text field when doing Metadata Customization?

view this post on Zulip Sherry Lake (Mar 13 2024 at 13:36):

I am assuming you are creating a new metadata block?

After the metadata block is set up, you can set up a Dataset template and add a "default value" in the metadata template.
https://guides.dataverse.org/en/latest/user/dataverse-management.html#dataset-templates

view this post on Zulip Mohsen Jafari (Mar 13 2024 at 13:42):

Sherry Lake said:

I am assuming you are creating a new metadata block?

After the metadata block is set up, you can set up a Dataset template and add a "default value" in the metadata template.
https://guides.dataverse.org/en/latest/user/dataverse-management.html#dataset-templates

I mean when creating a tsv file.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 13 2024 at 13:47):

You can add a watermark. Does that help? "A string to initially display in a field as a prompt for what the user should enter." -- https://guides.dataverse.org/en/6.1/admin/metadatacustomization.html#datasetfield-field-properties

view this post on Zulip Mohsen Jafari (Mar 13 2024 at 13:55):

But I want to have it as a real default value and not just watermark

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 13 2024 at 13:56):

I see. Similar to how the author is pre-populated by the person who is logged in?

view this post on Zulip Mohsen Jafari (Mar 13 2024 at 13:59):

Yes, for instance.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 13 2024 at 14:00):

I don't think anyone has asked for this, or at least I can't find a GitHub issue for it. Please feel free to create one.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 13 2024 at 14:00):

Most people use dataset templates for this, as Sherry mentioned. That won't work for you?

view this post on Zulip Mohsen Jafari (Mar 13 2024 at 14:20):

You know, I am generating the metadata on the fly and importing to the dataverse using its API; so having the capability to define a default value when generating TSV file is important for me.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 13 2024 at 15:00):

Ah, and dataset templates are (currently) a GUI-only feature. Makes sense. Are you interested in creating an issue?

view this post on Zulip Mohsen Jafari (Mar 13 2024 at 15:06):

Not sure yet. I should discuss with our team lead to see what to do.

view this post on Zulip Notification Bot (Mar 13 2024 at 15:06):

Mohsen Jafari has marked this topic as resolved.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 19 2024 at 14:09):

@Mohsen Jafari I see new issue at #10387 that sounds very similar. Was is created by someone on your team?

view this post on Zulip Mohsen Jafari (Mar 19 2024 at 14:12):

Yes, that's my colleague.

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 19 2024 at 14:14):

Ah, perfect, that's what I figured. Thanks!


Last updated: Oct 30 2025 at 06:21 UTC