cherry-pick b72c0074e64caafcc9fa4f61718b561af1538604 from develop
added max length validation for datatables