Skip to Content Skip to Menu

[SOLVED] Substitution in registration form

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239866 by krileon
Replied by krileon on topic Substitution in registration form

Do you know when 2.0 will be out

No, we don't have a release date but we're doing our best to work towards a stable release soon.

and if it is an easy update from 1.9.1 to 2.0?

Absolutely, you'll upgrade CB the same way you always have.


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.

10 years 9 months ago #239938 by Ajablonski
Replied by Ajablonski on topic Substitution in registration form
I tried your method and all worked except the checkbox is at the top of the field. I needed it at the bottom so the user was forced to scroll to the very bottom to check it. I'm not thinking this method is going to work... Is there no way to display a checkbox field inside of another field? I tried putting code for an input field which worked fine, but it wouldn't pass the data on to the database. I couldn't get an auto action to do that part either.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239956 by krileon
Replied by krileon on topic Substitution in registration form

I tried your method and all worked except the checkbox is at the top of the field. I needed it at the bottom so the user was forced to scroll to the very bottom to check it

You'll need to use CSS to move it to the bottom. A combination of absolute positioning on the checkbox and relative on its parent can be used to do this, etc..

Is there no way to display a checkbox field inside of another field?

No.

I tried putting code for an input field which worked fine, but it wouldn't pass the data on to the database.

Correct, it'd be a security violation of CB just stored anything that posted. It only stores fields that are designed to store.

I couldn't get an auto action to do that part either.

That shouldn't be an issue for CB Auto Actions. You can grab any value sent with the form post using [post_INPUT_NAME_HERE].


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.

10 years 9 months ago #239965 by Ajablonski
Replied by Ajablonski on topic Substitution in registration form
Since I have all the terms in a scrolling div and the checkbox is outside the div, I can't move it where I need it using CSS.

I tried again with the auto action and still can't get anything in the database. I created an input field in the terms and conditions delimiter using this code: <input id="cb_terms" class="required" type="checkbox" name="cb_terms" value="1" />. THen I created an auto action of type Query, onAfterUserRegistration, the User field is set to "User", Access is Everybody, conditional is not set, the query is "Update j25_comprofiler Set termsconditions = [post_cb_terms] Where user_id = [user_id]" without the quotes and mode is Internal. I look in the database and get an empty termsconditions field.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239995 by krileon
Replied by krileon on topic Substitution in registration form

Since I have all the terms in a scrolling div and the checkbox is outside the div, I can't move it where I need it using CSS.

Using absolute positioning on the div and the checkbox with a parent that has relative positioning will allow you to move them around. Sorry, but I can provide you with no other solution at this time. This won't be an issue with CB 2.0 as it has a Terms and Conditions fieldtype that'll allow inline text above checkbox, etc..

the User field is set to "User"

Leave User as Automatic. Setting it to "User" for a registration trigger will result in an empty user object, because "User" uses the viewing user and on that trigger there isn't one. So your query is always going to fail because there's no user for it to update.


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.

10 years 9 months ago #240024 by Ajablonski
Replied by Ajablonski on topic Substitution in registration form
Changing the User Field to Automatic did the trick! I thought I have tried that but I must not have had the right combination of everything else. Thank you for the continued help!!

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

Moderators: beatnantkrileon
Powered by Kunena Forum