Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional fields in Drupal form #1728

Open
miha-pece opened this issue Dec 7, 2020 · 4 comments
Open

Conditional fields in Drupal form #1728

miha-pece opened this issue Dec 7, 2020 · 4 comments
Labels
Subject: Metadata related to metadata issues. Consider also using the search tag.

Comments

@miha-pece
Copy link

miha-pece commented Dec 7, 2020

It would be nice if we would have option for conditional fields in form for adding repository items. For example, you have two radio button options, Add person as literal string and Link agent. Depending on selection, appropriate fields would pop-up on form.

I found one example on Drupal site: link

@rosiel rosiel added the Metadata label Dec 9, 2020
@kspurgin
Copy link
Contributor

kspurgin commented Dec 9, 2020

In Islandora Tech call we discussed that this may be related to what is being discussed in this issue: #1659

@miha-pece
Copy link
Author

It might be related. In a sense that universal solution for implementing conditional fields and conditional labels would be preferable. I just don't know if that is possible.

@mjordan
Copy link
Contributor

mjordan commented Dec 9, 2020

@miha-pece also at today's Tech Call we decided to point out that there is a Drupal module (https://www.drupal.org/project/conditional_fields) that allows site builders to do the kind of things you are asking for without any coding/API. So while it is technically possible to configure conditional form fields similar to what you are describing, we came to the conclusion that providing a default Islandora configuration for conditional form fields is complicated because so many of the fields provided by default in Islandora are optional.

Would you mind providing some additional specific examples of what you would be looking for? The more information you can provide, the better.

@miha-pece
Copy link
Author

A also found Drupal option, so yes, question is only if this could be useful if included as default Islandora. Maybe as example, how is possible to address some user interaction options. But I understand problems designing universal, general form, too many options could be confusing.

Our use case (at the moment as idea) is mixed fields for agents as strings or as minted agents. We think that mixed approach in one collection could be the best approach, because we have two categories of persons: on one side very stable group of persons with repeatable appearances, and on the other, many random passers, usually without sufficient personal data. Because of that, we thought that a mix approach with minted persons and open text field would be the most appropriate.

@kstapelfeldt kstapelfeldt added Subject: Metadata related to metadata issues. Consider also using the search tag. and removed Metadata labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Metadata related to metadata issues. Consider also using the search tag.
Projects
Development

No branches or pull requests

5 participants