Skip to Content Skip to Menu

Required field ONLY on register form ?

12 years 2 months ago #194416 by pepperstreet
Required field ONLY on register form ? was created by pepperstreet
How to make a field "required" on registration form only?

The site has already a lot of users.
New registrations should see a special field group as "required".
This field group should stay optional for all existing users... otherwise they are bothered on editing their profile.

Any solution or idea?


PS: I guess there is no configuration or setup for this particular application, right? What about using JavaScript on Register form... make the field temporary required... that would not alter the profile-edit !?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 47901
  • Thanks: 8157
  • Karma: 1434
12 years 2 months ago - 12 years 2 months ago #194428 by krileon
Replied by krileon on topic Re: Required field ONLY on register form ?
We've nothing for that, but you maybe able to fake it using CB Conditional (it can set fields required/non-required) by checking if email is not empty then setting the condition to not function on registration. Using JS only will not work; CB has PHP protection against simple DOM edits.


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: 12 years 2 months ago by krileon.

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

12 years 2 months ago #194451 by pepperstreet
Replied by pepperstreet on topic Re: Required field ONLY on register form ?

krileon wrote: We've nothing for that, but you maybe able to fake it using CB Conditional (it can set fields required/non-required) by checking if email is not empty then setting the condition to not function on registration. Using JS only will not work; CB has PHP protection against simple DOM edits.


Conditional, good idea. Might be a suitable workaround!

Protection:
What about show/hide or pre-selection of selectboxes/checkboxes/radio ? Is this possible?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 47901
  • Thanks: 8157
  • Karma: 1434
12 years 2 months ago #194461 by krileon
Replied by krileon on topic Re: Required field ONLY on register form ?

What about show/hide or pre-selection of selectboxes/checkboxes/radio ? Is this possible?

For pre-selected you can only do this for fields at registration by configuring the Default parameter when editing your fields in Field Management. This parameter will do nothing for fields not displayed on profile though.

As for the show/hide, of course; that's the main purpose of CB Conditional.


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.

12 years 2 months ago - 12 years 2 months ago #194467 by pepperstreet
Replied by pepperstreet on topic Re: Required field ONLY on register form ?
Sorry my fault, i mean show/hide/pre-selection with custom JavaScript on register form. Does the protection allow such manipulations?

(the values or criterias i need, might be attached to the register-URL. Then i decide on those "values" which field is hidden or selected)
Last edit: 12 years 2 months ago by pepperstreet.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 47901
  • Thanks: 8157
  • Karma: 1434
12 years 2 months ago #194469 by krileon
Replied by krileon on topic Re: Required field ONLY on register form ?

Sorry my fault, i mean show/hide/pre-selection with custom JavaScript on register form. Does the protection allow such manipulations?

Pre-selected values would work as they'd post with the form. Show/hide would not work for required fields as you'd need PHP to remove the required flag. CB Conditional can do all of this easily for you except for the pre-selecting.


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: pepperstreet

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

Moderators: beatnantkrileon
Powered by Kunena Forum