Refactored JS code for get max length for custom text validation
Prevent saving custom text type QRCode render settings with empty content