hmpf / easydmp

MIT License
7 stars 2 forks source link

Allow to hide "More information" field #206

Closed frafra closed 2 years ago

frafra commented 3 years ago

Sometimes the "More information" field is just not needed. It would be nice to be able to just disable that for fields that requires a direct answer without any further comment.

hmpf commented 3 years ago

The easiest way to do this for any question is probably to turn the has_notes attribute into a field on the table. This should be a one day fix (+ tests) but probably not this week.

hmpf commented 3 years ago

Hm, if has_notes becomes a field, then we cannot easily override it automatically in the admin for reason and shortfreetext-types since the default for has_notes depends on input_type, and we do not know input_type until we save the first time.

hmpf commented 3 years ago

.. and no, changing the autogenerated admin to such a degree with javascript that it changes the rest of the form depending on what is chosen for input_type is right out. That way lies madness.

hmpf commented 2 years ago

Found a way. Works in 1.13, closing issue.