1. consultnet
  2. Features Request
  3. Saturday, November 15 2014, 05:11 PM
Hi,
is it possible to configure two different registration forms with different fields? The basic fields like email etc. shall be identical. But I need different additional fields depending on the landing page my visitors come from.
Thanks,
Uwe
admin Accepted Answer
Admin
Hi,
Yes, this is possible.

follow these steps.
- create hidden field with "type" name
- set condition like: if this field equal to custom value "type2" show your type2 fields
- set condition like: if this field equal to custom value "type2" hide your type1 fields
- Create a menu item for type1 registration: in this form the hidden field is not set so condition show type1 field
- Create a menu item (External URL type) with same url of type1 and add this "?type=type2" for example:
/registration?type=type2

with this you will see a form with type field set to type2 and you will show type2 field

On registration you can set default values of fields, see docs at https://www.easy-profile.com/docs/27-set-default-value-in-registration-from-url.html
  1. more than a month ago
  2. Features Request
  3. # 1
consultnet Accepted Answer
Pro
Great - that is a good solution. Thanks!

But this way only seems to work with SEF-URLs. E. g. when I use /registration?type=type2 the respective site opens and it works just fine. But when I try to use the non-sefed URL index.php?option=com_users&view=registration?type=type2 I am getting an error 404 - view not found.

Is there any trick to get this going? Because otherwise I have problems to configure the two sites with different modules.

Thanks,
Uwe
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
with not SEF the correct URL is
index.php?option=com_users&view=registration&type=type2
instead
index.php?option=com_users&view=registration?type=type2

? char is used only to split path from variables
  1. more than a month ago
  2. Features Request
  3. # 3
consultnet Accepted Answer
Pro
Hi, thanks for your support. Now it is working as expected! Regards, Uwe
  1. more than a month ago
  2. Features Request
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.