Skip to Content Skip to Menu

overwrite the Name field

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
4 years 1 month ago #320993 by AlecsRU
overwrite the Name field was created by AlecsRU
When registering, the user entered the first and last name Joanna Smith. This is reflected in the lastname and firstname lines. Accordingly, in the user panel, her Name is listed as Smith Joanna .

Then she changes her last name to Johnson. I made a separate field cb_change_lastname and autoactions with overwriting the lastname field. The value in the lastname field became Johnson, but the Name field remained the same as Smith.

How can I overwrite the Name field ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 1 month ago #320999 by krileon
Replied by krileon on topic overwrite the Name field
Why are you copying the name to another field? Sorry, don't understand what you're trying to do.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
4 years 1 month ago #321059 by AlecsRU
Replied by AlecsRU on topic overwrite the Name field
When registering , the user fills in the fields lastname (Smith), firstname (Joanna). On the site, the Name field consists of these two fields (Smith Joanna) . After a while, she changes her last name to Johnson and asks to change it.

A new last name is inserted in the last name field, but the Name field does not change the last name and the user is listed as Smith Joanna, not Johnson Joanna.

How do I solve the problem of changing the Name field?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 1 month ago #321064 by krileon
Replied by krileon on topic overwrite the Name field
That should never be an issue. The Name field is always populated when first, middle, or last name fields are changed unless something is interrupting that process. I was not able to confirm any issue with this behavior. How are your users editing themselves? They should be exclusively using CBs profile edit.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • AlecsRU
  • AlecsRU
  • OFFLINE
  • Posts: 111
  • Thanks: 3
  • Karma: 0
4 years 1 month ago #321077 by AlecsRU
Replied by AlecsRU on topic overwrite the Name field
The replacement is auto actions. Fill in the field with the new last name, upload a document confirming the change of the last name and overwrite it

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 1 month ago - 4 years 1 month ago #321079 by krileon
Replied by krileon on topic overwrite the Name field
So you're adding the new last name to a custom text field? If that's the case that explains your issue since it's a custom field it's not considered for name construction. You don't need a separate name field for this. You can use CB Conditional to show your document file field (make it required) if the lastname fields value changes. This is done using the below condition on your file field.

Display: Field conditional show
Field: Last Name (lastname)
Operator: Not Equal To
Value: [lastname]
Locations
Registration: No
Profile Edit: Yes
Profile View: No
Userlists Search: No
Userlists View: No

Now if they try to change lastname the file field should show up and since it's required they'll have to provide the documentation to change the lastname. This will keep all name fields properly in sync and won't require another text field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 4 years 1 month ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum