Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Split full name field to first and last names

$
0
0

Replies: 0

Hi,

My form has a name field and an email field. Sometimes my users enter just the first name in the name field, and other times first name and last name, separated by a space. My list on Mailchimp has two separate fields for first name and last name.

Is there a way I can hook into a successful signup and split the name field if it has a space in it and populate the last name into a hidden last name field? That way my list will be organized. I don’t want to add another field for the last name as this greatly decreases the number of signups.

Thanks,
Yaniv


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>