Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Replace curly quotes and other problematic characters?

Post Reply
mlgeek
Posts: 23
Joined: Tue May 08, 2012 8:24 pm

Replace curly quotes and other problematic characters?

Unread post by mlgeek »

I guess I'm looking for the best way to scrub strings users have entered into fields before they get saved to the database.

Best to do this with Custom Code > Javascript? With Custom Code > Before Save?

How would one go about doing this?
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Replace curly quotes and other problematic characters?

Unread post by admin »

mlgeek,

Object Event (Javascript onchange event)

eg.

http://stackoverflow.com/questions/3889 ... phanumeric

Steven
mlgeek
Posts: 23
Joined: Tue May 08, 2012 8:24 pm

Re: Replace curly quotes and other problematic characters?

Unread post by mlgeek »

Hi Steven-


Are we talking about entering the JavaScript into the "On Change" box for field I wish to scrub?
Image

If so...do I just enter my JavaScript with regex here?
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Replace curly quotes and other problematic characters?

Unread post by admin »

Yes but this is a nuBuilder 2 question in the nuBuilderPro section.

Steven
mlgeek
Posts: 23
Joined: Tue May 08, 2012 8:24 pm

Re: Replace curly quotes and other problematic characters?

Unread post by mlgeek »

Ack. My apologies, Steven.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Replace curly quotes and other problematic characters?

Unread post by admin »

.
Post Reply