How to replace %20 with space in the field

  • 2 August 2021
  • 8 replies
  • 131 views

Badge +5

Hi All,

I have to replace %20 with space in the field text in nintex forms, please guide me.

19011i4AAC1C7941096B70.png

It should be "Complete write-off exercise" , i am trying to achieve as below but not working.

fn-Replace(fn-GetQueryString(mNum),"%20",""), mNum is a variable getting through javascript.


8 replies

Userlevel 3
Badge +12

Hi, The space character should look like " ", you just typed it as "". Try to keep a space character in between the double quotes 


fn-Replace(fn-GetQueryString(mNum),"%20","") change to 


fn-Replace(fn-GetQueryString(mNum),"%20"," ")


If it does not work, try below.


fn-Replace(fn-GetQueryString({TextStart}mNum){TextEnd},"%20"," "), more details in this article

Badge +5

Hi, 


Should i replace TextStart and TextEnd with anything, just copy and paste?


I have tried both, still no luck


fn-Replace(fn-GetQueryString({%}mNum){0},"%20"," ")


OR


fn-Replace(fn-GetQueryString({TextStart}mNum){TextEnd},"%20"," ")

Userlevel 3
Badge +12

No, just copy paste the {TextStart} and {TextEnd} as is, Nintex understands to consider the string in betwen these two words for processing. Please see the article that I mentioned in previous reply.

Badge +5

Hi Team,


Anyone has an idea on this. please.......................

Badge +5

@pfudala Can you please help on this.

Badge +11

@ramanjjilunaidu Try this:


 


fn-Replace(fn-GetQueryString({TextStart}mNum{TextEnd}),"%20"," ")

Badge +5

@Nunezma tried as it is still no use.


fn-Replace(fn-GetQueryString({TextStart}mNum{TextEnd}),"%20"," ")


result still same => Complete%20write-off%20exercise


 

Badge +11

Can you try a second calculated field?

First getquerystring and then try removing %20 from Complete%20write-off%20exercise that field and see if it works?
Replace(Text,"%20","")


 


Or try this:


 


Replace(fn-GetQueryString({TextStart}mNum{TextEnd}),"%20","")

Reply