Question

Fsm WebClient- Modify a field by script as soon as it detects a change

  • 29 November 2022
  • 1 reply
  • 81 views

Userlevel 1
Badge +2

Hi,

 

Is it possible in the Webclient, when you modify one of the task's search fields, to immediately detect that modification and run a script? Right now the script we have only runs after deselecting the field, the event we are using is the "AfterValueChanged", all the other events didn't work, like the "TextChanged".
What our script does is, if it detects a blank space, it replaces it with "|".
We want the script to run as soon as it detects a modification because if before deselecting the field, we press the SEARCH button, it gives the following error:

 

Best regards


1 reply

Userlevel 7
Badge +24

Hi @João Martins

Have you tried using the field validation settings instead? Below is an article regarding the area:

You should be able to set a regular expression to check for spaces and then use the output to strip them out.

Kind regards,

Lee Pinchbeck

Reply