Security

How to implement restrictions on characters, size etc in Input type=Text

christal1989
New Member

Hi,

I have a text box input where a user is supposed to enter certain details. Is there a way to restrict the number and type of characters entered in the text box to ensure all data entered is valid data and not junk data.

Regards,
Chris.

Tags (1)
0 Karma

p_gurav
Champion

You can use javascript like the following in your application.js:

$("input").attr("maxlength", 4)

Here is a demo: http://jsfiddle.net/TmsXG/13/

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...