Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only 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: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

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: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

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: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Replace curly quotes and other problematic characters?

Unread post by admin »

.
Post Reply