Skip to main content
Nintex Community Menu Bar

How to detect and block the entry of a french accented character in a field

  • May 21, 2019
  • 2 replies
  • 18 views

Forum|alt.badge.img+1

Hello

I am searching for some help to find a solution to detect french accented characters in textfield and to block the form validation.

  • Or if it's possible (?) a solution to replace the accented characters with the corresponding characters without accent ?

For example if a user fill a text field with "Kilian Mbappé"

  • I need to block the possibility to validate the form
  • or automaticaly replace this text with "Kylian Mbappe" before.

Thank you in advance for your help (I am not familiar with javacript...)

2 replies

Forum|alt.badge.img+14
  • Scholar
  • May 23, 2019

just to validate whather user input contains only allowed resp. doesn't contain fobidden characters - have a look on regular expression validation form control option.

this validation will work both in NEW and EDIT forms

 

 

if you needed the repalce just in NEW form and you do not need to/allow edit the input later on, you could use calcuated value control and write a formula with use of replace() runtime function to automatically convert forbidden characters to their allowed counterparts.

note to connect calculated value control to list field insted of input box in that case.

 

if you needed the replace both in NEW and EDIT mode then a small javascript would be needed to perform replace.

 


Forum|alt.badge.img+1
"have a look on regular expression validation form control option. this validation will work both in NEW and EDIT forms" : it's not exactily what I want to do but it's a good solution to be sure my text field doesn't contain forbidden characters. Thank's for your help !