simple subfields
it seems to me there is support for repeating subfields but not subfields that are not repeating. I find it very convenient to organize the schema to support subfields.
example:
{
"field_name": "vertical-extent",
"label": "Vertical Extent",
"simple_subfields": [{
"field_name": "min",
"label": "Min",
"form_attrs":{"pattern":"[0-9.]+"}
},
{
"field_name": "max",
"label": "Max",
"form_attrs":{"pattern":"[0-9.]+"}
}
]
}
While this could be done with two fields it is more obvious to users that the min and max values are related when grouped as subfields.
@fostermh hi Matthew, is the simple_subfields added? when i use it, my inputs get disappeared
Hi @Mohab25, I'm not sure what you mean? The pull request to merge this feature into master is still open so no it has not been added to the default branch if that is what you are asking. or do you mean you are testing https://github.com/ckan/ckanext-scheming/pull/297 and it is not working for you?
turns out the PR was broken. I think it is working now.