dkan icon indicating copy to clipboard operation
dkan copied to clipboard

DKAN2 Drupal Multiselect Autocomplete Issue with Topics in Dataset Form

Open DaniyalRaza786 opened this issue 1 year ago • 3 comments

Hi, I am using DKAN2 Drupal. I am facing a problem with adding datasets in the dataset form. I have two multiselect autocomplete fields, one is for tags, and the other is for topics (themes). I want to stop the "allowCreate" option for topics. However, when we set "allowCreate" to false in the JSON schema in the dataset.ui file, it's not working as expected. On the other hand, when we remove the "allowCreate" attribute from the schema, it partially works as it doesn't allow adding or selecting any new topics that do not exist in the provided list. But, in this scenario, when we submit any datasets with selected topics, the selected topics are not saved. And when we edit the same datasets again, it shows empty topic fields.

DaniyalRaza786 avatar Aug 01 '23 07:08 DaniyalRaza786

@DaniyalRaza786 you will have to make the topics a regular select field until more options are built in.

janette avatar Aug 04 '23 14:08 janette

@janette we need multiselect

DaniyalRaza786 avatar Aug 08 '23 11:08 DaniyalRaza786