[Resuelto] Restrict number field to entries of 1-5, single digit
This support ticket is created hace 1 año, 9 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
The HTML input element provides attributes to specify type and max and min; you could update the input to specify a type of "number", a min of "1" and max of "5".
hidden link
The form uses shortcodes to generate the input field and doesn't provide a way to specify those attributes.
One alternative would be to use some JavaScript (or JQuery) to manipulate the input and set those attributes.
Another would be to use the advanced form editor. Inspect the markup of the generated form on the front end and copy and paste the relevant input into the form editor, replacing the shortcode used to generate it, and manually set the attributes as required.
Hi Shane, I'll need to send you login as it's under development at the moment. Can you allow me to send you confidential information? Many thanks, Lins