Make all field values uppercase using a single file (global solution)

Hi everyone,

I need to convert all field values to uppercase across my Frappe app.

Requirement:

  • All DocTypes

  • All fields (or at least all text-based fields)

  • Should be handled from one single file

  • Changes should apply globally, not field-by-field or DocType-by-DocType

I’m looking for the best practice approach in Frappe:

  • Client Script?

  • Hook (like validate or before_save)?

  • Custom app override?

  • Any built-in Frappe utility for this?

If possible, I’d appreciate a sample implementation or guidance on where to place this logic so it applies everywhere.

Thanks in advance!