Skip to Content Skip to Menu

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

Registration

11 years 9 months ago #219909 by orangeapple
Registration was created by orangeapple
Hi,

on my registration page, I am asking the question - Are you a casual employee? YES or NO

If they answer YES, then the registration process needs to end and I would like the user to be able to fill out a few additional fields and then be able to email them to me so as I can contact them.

I have it working so they if they choose NO they are able to proceed to step 2 and continue with registration which is great.

Any help would be appreciated.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219941 by krileon
Replied by krileon on topic Registration
There is no such feature. Best I can suggest is do a redirect action with CB Auto Actions using the onStartSaveUserRegistration trigger then check the POST value of that field and redirect to maybe some sort of 3rd party Form or contact us page with a message describing what happened. Example as follows

Type: Redirect
Trigger: onStartSaveUserRegistration
Conditional: [post_cb_myfield] Equal To 1
URL: index.php?option=com_contacts
Message: Your registration could not be accepted, please contact us for details.


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.

11 years 4 months ago #229228 by orangeapple
Replied by orangeapple on topic Registration
Hi Krileon,

I am having trouble getting this to work as I want.

If you visit - new.sasmoa.com/index.php/component/comprofiler/registers
You will see the registration form. On the first step is the question Are you a Permanent Employee, a Casual Employee or a Student? If the user answers 'Casual Employee' at this stage, I would really like it to have a pop up appear which states "We do not allow Casual Employee registration, please contact the office".

Is there anyway this could be done?

Many Thanks
Brad

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #229267 by krileon
Replied by krileon on topic Registration

Is there anyway this could be done?

Yes, you'd need to use a Code action on the registration display trigger. Then set it to jQuery Method and supply the needed jQuery to do an alert when they change the value to "Casual Employee". Example as follows.

Type: Code
Triggers: onBeforeRegisterFormDisplay
Access: Everybody
Method: jQuery
Code:
Code:
$( '#cbf1642' ).change( function() { if ( $( this ).val() == 'Casual Employee' ) { alert( 'We do not allow Casual Employee registration, please contact the office.' ); } });


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.

11 years 4 months ago #229308 by orangeapple
Replied by orangeapple on topic Registration
Brillant, thanks for that.

Only problem I had was, when using the Auto Actions plugin in the backend, every time I entered in the alert word into the jquery code field and pressed save/apply, it would come back with an error of 403 Forbidden and wouldn't save it. I had to log in to the phpMyAdmin and find the field in there and manually add in the word 'alert' for it to work.

While I have your attention, could I ask one more thing. Once they have chosen "Casual Employee", I have been able to make the other tabs hide except for the last one 'Step 6' which is basically where they agree to T&C's and complete registration. I would really like it if that tab could also be hidden, so as they cannot complete registration at all.
Are you able to help?

Many thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #229331 by krileon
Replied by krileon on topic Registration

Only problem I had was, when using the Auto Actions plugin in the backend, every time I entered in the alert word into the jquery code field and pressed save/apply, it would come back with an error of 403 Forbidden and wouldn't save it. I had to log in to the phpMyAdmin and find the field in there and manually add in the word 'alert' for it to work.

Sounds like mod_security on your server rejected it. This is normal and good on them for protecting you against possible abuse.

While I have your attention, could I ask one more thing. Once they have chosen "Casual Employee", I have been able to make the other tabs hide except for the last one 'Step 6' which is basically where they agree to T&C's and complete registration. I would really like it if that tab could also be hidden, so as they cannot complete registration at all.
Are you able to help?

Terms and conditions is added to the last step of step by step automatically. So whatever that tab is simply condition it the same as you've done for the others.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum