Forum Discussion
Jenny_ED
1 year agoCommunity Member
Limiting Text Entry to One Character Issue
Hello everybody! As I work on a crossword puzzle, I would like to limit the text entry fields to only contain one character. Previously, in 2023, I have succeeded doing it using the JavaScrip...
- 1 year ago
Try
const Inputs = () => { const inputs = document.querySelectorAll('.acc-textinput'); inputs.forEach((input) => { input.setAttribute('maxlength', '1'); input.setAttribute('autocomplete', 'off'); }); } setTimeout(Inputs, 100);
LesB
1 year agoCommunity Member
Hi Nedim,
We're stuck. The goal is to have multiple text entry fields on a single slide With a real-time counter.
Nedim
1 year agoCommunity Member
I came up with this. Do you actually need to prevent typing past 5 characters?
- LesB1 year agoCommunity Member
Thank you!!!!
- Nedim1 year agoCommunity Member
Okay, I'll get back to you tomorrow as I'll need a bit more time to set this up for additional slides and text entry fields, unless you'd prefer that I upload this one slide and script for you to try updating and adjusting yourself.
Related Content
- 1 year ago