G-Node / tonic

Framework for building services that interact with GIN
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Custom function for preprocessing form #5

Closed achilleas-k closed 3 years ago

achilleas-k commented 3 years ago

Support setting an optional custom function that receives the form type (currently []Elements but in the future it will probably be different) and returns the same type with modifications. This could include setting default values, populating drop-down lists with only valid options, or dynamically changing the form fields based on the user (e.g., according to user permissions).