Dynamically set the min and max entry limit of number field