Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

restrict special character

how to restrict the special character in input box

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Works for me


talk is cheap, supply exceeds demand

View solution in original post

7 Replies
hallquist_nate
Partner - Creator III
Partner - Creator III

If you go to the Help menu in QlikView and Search "Input Constraints", you'll find a search result called "Input Box Properties: Constraints"  That will tell you everything you need to know.  Basically, use Custom Contraints and dictate what is allowed to be entered.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you want a constraint that only allows letters and numbers you can use this:

=len(PurgeChar($,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'))=0

If you want to allow more characters you can add them in the expression. Alternatively you could use something like this:

=len(KeepChar($,'`~@#$%^&*()_-+={[}]|\:;<>,./?'))=0


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

it shows error in $ symbol

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That's a bug in the expression editor. The $ will be substituted with the input value. Just try it.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

no its not working

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Works for me


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

ya thanks... its works... but i restrict the character without typing(when i press @ ,@ is not entering in the input box..)

now it s entering when press another object then only its validating