Open MandanaMoshref opened 1 year ago
@MandanaMoshref form pages don't change the way the underlying API/validation for datasets work. This means you can't have required fields on the second page because the initial package_create
will fail when trying to complete the first page.
You could change the validation rules for required fields on the later pages to only enforce requirement when the package is not in draft mode, or when fields for the same page are submitted. This doesn't happen automatically with the form pages feature in scheming right now.
If you do come up with a general way to allow required fields in any scheming form page I would definitely consider including it in ckanext-scheming.
ckan version: 2.10 ckanext-scheming: latest (installed on 01.07.2023)
have a field with
required: true
after the first form_page causes an error message while being in the first form_page. It looks that the form_page only separates the field visually and ckan processes the whole field at once.to reproduce the error: scheming.yml -> Although the field "Resource" is a required field in the second form page, I cannot even see the second page, because in the first form_page I receive the error of not filling the Resource field as an obligatory field.
Here a screenshot of the error: