Skip to main content
Nintex Community Menu Bar
Answer

Apostrophe causing issues when using Replace in Nintex Forms

  • October 21, 2020
  • 1 reply
  • 54 views

Forum|alt.badge.img+1

Hi,

 

I am trying to replace the apostrophe in a user's email address on a Nintex form using a Form Variable. This is not working and I think it's because of how Nintex is setting up the replace. I've looked at the source and I think the apostrophe in the email address is effectively closing the one used to enclose the email address.

 

Has anyone got any advice on how I can replace the apostrophe in an email address and display/use it on a form? I need to take the replaced version of the email address to do some further lookups to a sharepoint list and bring back various values, such as job title, etc. and show them on the form.

 

Any help would be gratefully appriciated.

 

NWF.RuntimeFunctions.replace.call(NWF$(sourceContext)[0], NWF.FormFiller.Functions.GetTypedValue('Test.Mc'User@XXX.com','Text'), "'", "*")

 

Thanks,

Dannielle

Best answer by SimonMuntz

Hi,

Strange,
I tested with replace(Current User (Email),"'","")
and it seemed to work as expected.

1 reply

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • October 22, 2020
Hi,

Strange,
I tested with replace(Current User (Email),"'","")
and it seemed to work as expected.