Hi everyone, I’d like to set a simple limit on the form values. Is there any way to set upper and lower bounds for the addNumber text box, or is adding JavaScript for validation the only option?
This is because dropdown menus are not convenient for teachers to input grades. I found something similar to ->minimum(n) in some parts of the code, but it didn’t work when I tried it.
Thank you for your response. I confirm that it does not work, including the expiration time of 1200 seconds in the system settings. I can set it to 1 second and successfully save it.
I did not find any attributes like min or max in the generated HTML code.
Hi @AndroidOL Thanks for reporting the issue. After investigation, we have identified it as a bug. It has been fixed in the upcoming Gibbon v29. Cheers!
The min and max attributes conflict with maxLength. Naturally, we should use max instead of maxLength. However, in scenarios where the maximum value is uncertain, it’s convenient to appropriately limit maxLength to 3.