Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Required fields of different profile types prevent editing profiles in frontend

8 years 10 months ago - 8 years 10 months ago #275090 by uncleron12345
Hello,

I have some conflicts with required fields depending on different profile types.
There are Profile Type "A" for clients and Profile Type "F" for companies.

Each type of profile has its own required fields, e.g. client profiles do not see "company name" field in their profile/profile edit.

When a client tries to update/edit profile an error with a message like "field Company Name is required" appears and saving profile is not possible.


How can I get it work?


Thanks in forward! I hope you understand what i mean :-)

Best

René
Last edit: 8 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275193 by krileon
I assume you're using CB Conditional to show/hide fields based off profiletype? If this is the case ensure those fields are being conditioned once and only once. A field can not be conditioned multiple times and only the last condition will be applied.


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.

8 years 10 months ago - 8 years 10 months ago #275251 by uncleron12345
I don't understand where my mistake is.

Profile A has about 64 fields (depending only on a profiles)
Profile F has about 5 fields (only for this profile)

some other fields (like email and password) are for both profile types.

I have one field (cb_profiletype) which controls if the registered user is "a" or "f" type.

So I set cb conditionals on cb_profiletype with:

1: IS "a-profil" THEN hide (all f type fields selected)
2: IS "f-profil" THEN hide (all a type fields selected)


the fields are hidden in each other profile.
when i save a f profile, there are no errors. on saving an a profile, the error msg appears.
Last edit: 8 years 10 months ago by uncleron12345.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275276 by krileon
I don't recommend Conditional Others usage, it's actually planned to be removed in a later release as it's just not as reliable as Conditional Self. Turn off the second condition then edit each of the "a type" fields and have them Conditional Self against your cb_profiletype field. It should work much better.


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.
The following user(s) said Thank You: uncleron12345

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

8 years 10 months ago #275443 by uncleron12345
I tried it with only some fields but it still doesn't work.
After updating profile, the error still appears :(

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

8 years 10 months ago #275446 by uncleron12345
oh,
now it works whit CBSubs Fields Tabs Protect:

A. Field availability by Owner's Subscriptions
1) For other viewers:
-> Yes, control CBSubs field availability
-> all plans for f-type profiles selected

2) No, owner himself is also restricted


B. Field visibility by Viewer's Subscriptions
No. Normal CB Settings



Can the reason be that CBSubs overrides the conditionals, when the user is assigned to a plan?
Do you think my settings above are correct, or have i missed something that may cause other errors in other parts of profile? :silly: :)

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

Moderators: beatnantkrileon
Powered by Kunena Forum