Skip to Content Skip to Menu

passing parameter in a register form through URL

  • sereniteam
  • sereniteam
  • OFFLINE
  • Posts: 244
  • Thanks: 16
  • Karma: 0
3 years 9 months ago #322340 by sereniteam
IS it possible to preset register form in the url link ?

What should be then the spelling, if i want to preset a field value to 1 ( ex : [cb_titre]=1 )


Many thanks for your help

SereniTeam

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48425
  • Thanks: 8274
  • Karma: 1443
3 years 9 months ago #322344 by krileon
You want to set a fields value on registration based off the URL? Only way to do that is probably CB Auto Actions acting on the onBeforeRegisterFormDisplay trigger and modifying the user object.


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.

  • sereniteam
  • sereniteam
  • OFFLINE
  • Posts: 244
  • Thanks: 16
  • Karma: 0
3 years 9 months ago #322354 by sereniteam
Replied by sereniteam on topic passing parameter in a register form through URL
What sort of modification should I try in the Condition to set it in fonction of the origine of the URL ?

SereniTeam

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48425
  • Thanks: 8274
  • Karma: 1443
3 years 9 months ago #322356 by krileon
Sorry, don't understand what you're asking. The below should work to set a default value for a field based off the URL.

Global
Triggers: onAfterinitFieldToDefault
Type: Code
User: Automatic
Access: Everybody
Conditions
1: [get_cb_titre] Equal To 1
Action
Method: PHP
Code:
Code:
$vars['var2']->set( 'cb_titre', 1 );
Parameters
References: Variable 2


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