Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bhavesh Jadav 35 posts 144 karma points
    Apr 08, 2016 @ 10:46
    Bhavesh Jadav
    0

    Do not allow to enter special character in textbox field

    Hi,

    I need to required regex validation that does't allow to enter special character in textbox field

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 08, 2016 @ 10:55
    Dennis Adolfi
    0
  • Bhavesh Jadav 35 posts 144 karma points
    Apr 08, 2016 @ 11:05
    Bhavesh Jadav
    0

    Hi Dennis,

    Thanks for your reply.

    I have already try regex provided by you, but it's allow me to enter special character.enter image description here

    enter image description here

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 08, 2016 @ 11:12
    Dennis Adolfi
    0

    That is very strange.. What version of Umbraco are you using?

    enter image description here enter image description here

  • Bhavesh Jadav 35 posts 144 karma points
    Apr 08, 2016 @ 11:18
    Bhavesh Jadav
    0

    Umbraco 7.3.0

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 08, 2016 @ 11:26
    Dennis Adolfi
    0

    Tried the exact same regex now on a 7.3.0 installation and it worked perfect.

    Do you get any error in logs? Are you sure you are applying it to the correct textbox?

  • Bhavesh Jadav 35 posts 144 karma points
    Apr 08, 2016 @ 11:31
    Bhavesh Jadav
    0

    Hi Dennis,

    It's working now, but now allow me to enter number,letter & special character including / and - in textbox

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 08, 2016 @ 11:42
    Dennis Adolfi
    0

    So what characters are not allowed now?

  • Bhavesh Jadav 35 posts 144 karma points
    Apr 09, 2016 @ 04:51
    Bhavesh Jadav
    0

    all special character except / and -

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies