Pre-fill a registration field via URL

2 years 7 months ago #326266 by ontarget
Pre-fill a registration field via URL was created by ontarget
Hi, Is it possible to pre-fill a field value via the registration url in CB?
e.g if i had a checkbox field which i wanted to be ticked when a certain link is clicked
something like
index.php?option=com_comprofiler&view=registers&cb_checkbox=1

I searched the docs but couldn't find anything.

Please Log in to join the conversation.

2 years 7 months ago #326275 by beat
Replied by beat on topic Pre-fill a registration field via URL

ontarget wrote: Hi, Is it possible to pre-fill a field value via the registration url in CB?
e.g if i had a checkbox field which i wanted to be ticked when a certain link is clicked
something like
index.php?option=com_comprofiler&view=registers&cb_checkbox=1

I searched the docs but couldn't find anything.


I believe that you can do that with CB and the CB Auto-Actions add-on:
www.joomlapolis.com/addons/cb-auto-actions

You would setup an action that triggers on before the registration form display, has a condition on the cb_checkbox input, and has as action to to set that field if the condition is met.

You can see CB Auto-action documentation www.joomlapolis.com/documentation/274-cb-auto-actions , videos: www.joomlapolis.com/documentation/274-cb-auto-actions and then try that on our demo site (resets every hour or so) or on your own site.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.533 seconds

Facebook Twitter LinkedIn