cernanalysispreservation / analysispreservation.cern.ch

Source code for the CERN Analysis Preservation portal
https://analysispreservation.cern.ch/
GNU General Public License v3.0
42 stars 30 forks source link

ui: drafts - pass custom `transformErrors` function to form after formule removal #2891

Open pamfilos opened 4 months ago

pamfilos commented 4 months ago

for with-formule branch:

We have removed the transformErrors prop passing on react-formule and from now everyone has to go add his own custom transformErrors

Lets copy the legacy functionality to the CAP side

Add also some information in Formule's readme about how to pass a transformErrors for example to avoid validation messages for required fields in admin (or maybe even provide a default or an easy to change prop for the required fields case).

pamfilos commented 4 months ago

Similar #2688