We were trying to expose username, firstname, lastname only to Admins (Field Conditional Show in Profile Edit). Only the fullname (formatname) stays public. The intent was these fields would be set at registration and could not be changed afterwards by the user.
1) When username is required, the user can no longer save their profile without a "username missing" error. The username is still set and remains unchanged.
2) When any part of his profile is changed by the user and saved, his firstname and lastname are nullified. Firstname and Lastname are still required and no error is generated on save or subsequent saves (even with empty names)
I'm guessing you're using conditions to do this? By default CB Conditional will reset a fields value to its empty state if the condition fails. To prevent this be sure to turn Reset to No (this parameter is at the bottom below your conditions). I suggest just setting those fields to Read Only if you do not want them to be changed. You can also use CB Privacy to limit field edit permissions to only moderators.
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.
You can still edit from frontend using CB Privacy and its edit restrictions feature, but CB Conditional will work fine as long as it's only applying the condition to profile edit and Reset is set to No. The globals for CB Conditional are in its plugin settings.
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.