+ Reply to Thread
Results 1 to 4 of 4

Thread: block special characters in title

  1. #1
    Senior Member
    Join Date
    Jun 2016
    Posts
    185

    block special characters in title

    Hi everybody

    How do i block users from putting special characters in titles such as ",'. etc. So it is only text and numbers users ca write

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    You should use number() function in your tpl file like this:

    Code:
    Only registered members can view the code.
    where <your_field_key> - a key of your field
    Last edited by Rudi; February 26, 2018 at 01:55 PM.

  3. #3
    Which tpl file? Can force lowercase characters? Many user use capital letters even if required not to

  4. #4
    Senior Member
    Join Date
    Jun 2016
    Posts
    185
    Ok, thanks Rudi. Will try it.

    And for you ionut. You can try with css

    Add to the class name {text-transform:lowercase;} and to the same class name add to the class name :first-letter {text-transform:uppercase;}

+ Reply to Thread