I have tried multiple ways to get zoho to stop replacing text when the first replacement is done, but cannot get it to work.
The code I have right now in the on user input section of the Reference Name 1 field is:
but it does not seem to stop the loop.
- refName=input.Reference_Name_1;
- if (input.Reference_Name_1.contains(" "))
- {
- refNameReplace=(refName).replaceFirst(" ","%20");
- input.Reference_Name_1=refNameReplace;
- }
- else
- {
- }
Can anyone spot the error in this code that is not stopping the function? or is there a bug?
Thanks,
Mike