You should certainly be able to get field metadata for the current library with get_gui().current_db.new_api.field_metadata
However, since the template setting is not per library, perhaps the proper fix is to no validate field names at all? I dont know if that's possible with validation_formatter however.
|