Title: Last name issue
Last modified: July 15, 2022

---

# Last name issue

 *  Resolved [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/)
 * The contact name in hubspot for many of the users is like ( first 1 ). The lastname
   of the user is shown as 1. Any Idea why it behave in such a way ?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15828646)
 * Hey [@aravind21](https://wordpress.org/support/users/aravind21/) , how are your
   users registering?
 * And what do the logs show? [https://wpfusion.com/documentation/getting-started/activity-logs](https://wpfusion.com/documentation/getting-started/activity-logs)
 * Is it possible there’s a hidden “last_name” field on your registration form that
   might have the value “1” in it?
 * If you’re not collecting last names during registration it’s also possible to
   just disabled the Last Name field from sync: [https://wpfusion.com/documentation/getting-started/syncing-contact-fields/](https://wpfusion.com/documentation/getting-started/syncing-contact-fields/)
 * Cheers
    Jack
 *  Thread Starter [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15833710)
 * The issue is happening intermittently and not all users have their lastname as
   1. Some of the users have there lastnames. There no hidden field with lastname
   as 1.
 * The users are registering from a signup form created using buddyboss platform
   plugin. Since the issue is not occuring all the time, I don’t think that is the
   cause of the issue.
 * The logs does show the last name of the user as 1. But doesn’t show any error.
 * We are collecting lastnames of the users while registration.
 * Any other ideas why the issue is happening ?
    -  This reply was modified 4 years ago by [aravind21](https://wordpress.org/support/users/aravind21/).
 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15833927)
 * [@aravind21](https://wordpress.org/support/users/aravind21/) Hmm interesting.
   Can you send a link to your registration form and also a screenshot of the logs
   showing the “1”?
 * One thought… Do you have the HubSpot plugin installed? Can you check and see 
   if you’ve enabled support for Non-HubSpot Forms: [https://knowledge.hubspot.com/forms/use-non-hubspot-forms](https://knowledge.hubspot.com/forms/use-non-hubspot-forms)
 * This tries to automatically detect your form fields and sync them to the contact,
   but it can sometimes get confused. If there’s a “1” or a checkbox on the form,
   it could think this is the last name, and overwrite the real last name.
 * But if that was the case the 1 would only show up in HubSpot, not the WPF logs,
   so if the 1 is showing in the logs I’m not sure. Seeing a screenshot would help.
   Thanks.
 *  Thread Starter [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15834990)
 * Here’s the link for user registration form: [https://members.worldlinkmedical.com/register/](https://members.worldlinkmedical.com/register/)
 * The logs of a user can be found in here [https://drive.google.com/file/d/1JzTq0qzQt9cFwuB-93yRNCP7XHgMMBEn/view](https://drive.google.com/file/d/1JzTq0qzQt9cFwuB-93yRNCP7XHgMMBEn/view)
   
   not sure why the other info like firstname is missing in the logs
 * The support for non-HubSpot forms is enabled.
 * Let me know if you need anything to analyse the issue.
    -  This reply was modified 4 years ago by [aravind21](https://wordpress.org/support/users/aravind21/).
 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15835057)
 * Thanks. There is actually no `last_name` field on your form, you can see the 
   POSTed form data here: [https://i.wpfusion.com/9svD45](https://i.wpfusion.com/9svD45).
   So that’s the main problem.
 * You have `field_2` which contains the last name, but this is a BuddyPress XProfile
   field. We only support XProfile fields in the full version of WP Fusion: [https://wpfusion.com/documentation/membership/buddypress/#syncing-custom-fields](https://wpfusion.com/documentation/membership/buddypress/#syncing-custom-fields)
 * After the user is registered, BuddyPress _then_ copies `field_2` over to `last_name`,
   but we don’t support this in WPF Lite because it’s part of our BuddyPress integration.
 * The Lite version syncs these core fields ([https://i.wpfusion.com/c6ep9h](https://i.wpfusion.com/c6ep9h)),
   but none of those fields are on your registration form.
 * You could try adding a new field for sync in the settings called `field_2` to
   see if that makes it work: [https://wpfusion.com/documentation/getting-started/syncing-contact-fields/#additional-fields](https://wpfusion.com/documentation/getting-started/syncing-contact-fields/#additional-fields).
 * You could also try enabling Push All in the General settings [https://wpfusion.com/documentation/getting-started/general-settings/#push-all](https://wpfusion.com/documentation/getting-started/general-settings/#push-all),
   which *might* make it detect the name change and sync it when BuddyPress copies
   the XProfile data over to the `wp_usermeta` table (although this will result 
   in a duplicate API call).
 * The `1` is coming from the `legal_agreement` field.
 * Our logic for user registrations _tries_ to find a name by looking for HTML inputs
   using the following logic:
 * `last_name`
    `lname` `last_*` `l*`
 * Since there’s no last name field on the form, it treats the first form field 
   that starts with `l` as the last name… to try to avoid creating a contact without
   a name.
 * In your case that’s the `legal_agreement` checkbox, which is checked, and equals
   1.
 * If you can’t get it to work by registering the custom field then you will need
   to make sure that your form has `first_name` and `last_name` fields on it to 
   sync properly (or update to the full version of WP Fusion which does support 
   XProfile custom fields) 👍
 *  Thread Starter [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15835315)
 * Actually I think we are using the full version of WPfusion. Where can we enable
   this XProfile custom fields in WPfusion ?
 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15835423)
 * They will show up for sync under the BuddyPress (or BuddyBoss) header in the 
   Contact Fields list, like this: [https://i.wpfusion.com/VuTquo](https://i.wpfusion.com/VuTquo)
 *  Thread Starter [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15835587)
 * Okay, I can find the buddypress section [https://drive.google.com/file/d/1W_1f7eurjPpYmpz3CbvWclCLXsjQNvK0/view?usp=sharing](https://drive.google.com/file/d/1W_1f7eurjPpYmpz3CbvWclCLXsjQNvK0/view?usp=sharing)
 * But I can’t find the additional fields shown in the image you shared. May be 
   it is not a full version. Can you provide some resources or hooks to develop 
   a custom implementation ?
    -  This reply was modified 4 years ago by [aravind21](https://wordpress.org/support/users/aravind21/).
 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15836224)
 * That setup looks right, so in that case the Last Name should be syncing.
 * Since you’re using the full version of WP Fusion, it should all work automatically
   👍
 * There may be some conflict on your site, we’d be happy to take a look at that
   for you.
 * Since this is the support forum for our Lite (free) plugin, I’d invite you to
   put in a ticket at [https://wpfusion.com/contact/](https://wpfusion.com/contact/)
   with your license key and a login to the site and we’ll check it all over and
   get everything working for you 🙂
 *  Thread Starter [aravind21](https://wordpress.org/support/users/aravind21/)
 * (@aravind21)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15842860)
 * Hey, Is it possible to change the lastnames of the existing users in hubspot.
   Replacing the ‘1’ with their actual lastnames in wordpress ?
 *  Plugin Author [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * (@verygoodplugins)
 * [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15845850)
 * Yup just do a Push User Meta operation 🙂
 * [https://wpfusion.com/documentation/tutorials/batch-operations/#push-user-meta](https://wpfusion.com/documentation/tutorials/batch-operations/#push-user-meta)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Last name issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-fusion-lite/assets/icon-256x256.png?rev=3032199)
 * [WP Fusion Lite - Marketing Automation and CRM Integration for WordPress](https://wordpress.org/plugins/wp-fusion-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fusion-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fusion-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fusion-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fusion-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fusion-lite/reviews/)

## Tags

 * [contacts](https://wordpress.org/support/topic-tag/contacts/)

 * 11 replies
 * 2 participants
 * Last reply from: [Jack Arturo](https://wordpress.org/support/users/verygoodplugins/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/last-name-issue/#post-15845850)
 * Status: resolved