WIP change value.

This commit is contained in:
Bryan Mauger 2023-05-09 11:01:47 -04:00
parent 5104ee4eca
commit 610e82e382
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export default {
my_textarea.addEventListener("input", () => {
const total = remain - my_textarea.value.length;
const color = total < remain * 0.1 ? "red" : null; //Change text to red when the total remaining goes below 25;
const color = total < remain * 0.1 ? "red" : null; //Change text to red when the total remaining goes below 10%;
remaining.innerHTML = `${total}/${this.maxLength} characters remaining`;
remaining.style.color = color;
});

View file

@ -2,7 +2,7 @@
<textareaquestion
cmsWidgetName="CustomerDetailsTextAreaLabelText"
:labelText="textAreaLabelCopy"
maxLength=50
maxLength=250
isRequired
/>
</template>