Dynamically set max_length?

[removed]