[SOLVED] cb autoaction

9 years 9 months ago - 9 years 8 months ago #247335 by lucvdr
[SOLVED] cb autoaction was created by lucvdr
I'm using the cb autoaction plugin to auto populate some fields from members after they have registered.

I would like the value the cb autoaction plugin generates in these fields to behave like a prefilled default value so that members are still obliged to fill in the fields.

Now, cb acts like the value is already filled and members are not obliged anymore to fill in the mandatory fields.

any help welcome!

Please Log in to join the conversation.

9 years 9 months ago #247343 by krileon
Replied by krileon on topic cb autoaction
With CB 2.0 you'd just specify the Placeholder parameter, but for CB 1.x no such parameter exists. You can however add it using the before registration form trigger and a Code action with Method set to jQuery. What you'll need to do is add the placeholder attribute to your text fields. For select fields I suppose you'd need to modify the empty option. To add the placeholder you'd do the below for example.

$( '#username' ).attr( 'placeholder', 'Please enter a username...' );


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

Please Log in to join the conversation.

9 years 8 months ago #247393 by lucvdr
Replied by lucvdr on topic cb autoaction
Hi, I'm affraid it is not working. I'm need to add a placeholder to the field 'cb-phone'
I tried your tip but nothing happens after registration to the placeholder field.

Please see my attached setup.

Attachments:

Please Log in to join the conversation.

9 years 8 months ago #247407 by krileon
Replied by krileon on topic cb autoaction
Don't select everything for Access. Select "Everybody" and nothing else. Then retry and see if it works.


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 to join the conversation.

9 years 8 months ago #247439 by lucvdr
Replied by lucvdr on topic cb autoaction
Sorry, no change.
I will PM you the login data, perhaps you can have a better look at it this way

luc

Please Log in to join the conversation.

9 years 8 months ago #247464 by krileon
Replied by krileon on topic cb autoaction
Have reviewed your install. Your action looks fine and the jQuery looks fine. The issue is targeting "cb_phone", which doesn't exist on registration. You only have First Name, Last Name, Email, Username, and Password on your registration page.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.279 seconds

Facebook Twitter LinkedIn