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] Make required (in edit mode) a non required field

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 11 months ago - 10 years 11 months ago #236723 by dotcom22
hello

I have a field which is not required to be filled at registration ( I'm forced to do that because when registering, all data are sent to a remote server). Now I would like make it required when users update their profile for force them to fill something if field was empty or to avoid they cancel data if field was filled.

How to do that ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 10 years 11 months ago by krileon.

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

  • danbo1972
  • danbo1972
  • OFFLINE
  • Posts: 88
  • Thanks: 22
  • Karma: 4
10 years 11 months ago #236746 by danbo1972
Make it a required field that doesn't show during registration. Once they try to update their profile they will be required to enter the data in the required field.

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

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 11 months ago #236754 by dotcom22

danbo1972 wrote: Make it a required field that doesn't show during registration. Once they try to update their profile they will be required to enter the data in the required field.


That the point: I need to show this field at registration but I don't want force user to fill in at this step. I want force them to fill only in edit mode.

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • danbo1972
  • danbo1972
  • OFFLINE
  • Posts: 88
  • Thanks: 22
  • Karma: 4
10 years 11 months ago - 10 years 11 months ago #236756 by danbo1972
Oh, by the way you posted it, " not required at registration" I assumed it didn't need to show then.

So, you want it visable to them during registration but they do not have to fill it out. If they edit their profile they are required to put the data in before saving changes.
Interesting concept. One way you can do it is to use cb conditions to do something similar to this.

Field conditional on self
if "some field" = not empty (this makes the action work) (select a field that they have to fill out like, name, email, etc.)
then
not required
Registration - Disabled
Profile Edit - Enabled

Make sure the field is a "required" field.
This condition makes it so the requirement to be filled in at registration is bypassed but upheld during profile edit.

That's the only way I know to do it. I'm sure theres a cleaner method, but I'm pretty new at all of this. Good luck.

I've included a pic so you get the idea of what I'm trying to say.
Attachments:
Last edit: 10 years 11 months ago by danbo1972.
The following user(s) said Thank You: krileon

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #236758 by krileon
CB Conditional is the only solution in this case as proposed by danbo1972. CB does not have built in separate registration and profile edit required state.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 11 months ago #236767 by dotcom22
excellent...I made what suggested and work well..

many thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
The following user(s) said Thank You: danbo1972

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

Moderators: beatnantkrileon
Powered by Kunena Forum