pep-dortmund / member-database

Our member database application
Other
9 stars 1 forks source link

Add support for default field values in json forms #193

Closed The-Ludwig closed 1 year ago

The-Ludwig commented 1 year ago

For the 50-jahres-feier we want to show text below the form. Quick and dirty hack for this: use hidden field, settable by "type": "null".

Also, default values for integer fields are nice, so introduced "default"

maxnoe commented 1 year ago

In my local testing, I couldn't get the HiddenField to actually show up...

How is this supposed to work?

Also, reading the specs, a hidden field is actuall a string field, so I'd use:

"type": "string", "fmt": "hidden"

The-Ludwig commented 1 year ago

Yes, error on my side. removed it