1. krnsgrffn
  2. Features Request
  3. Tuesday, September 15 2020, 10:02 PM
HI-

I really, really need your registration/edit profile module, but I need to be able to declare a value so that the correct fields show. Is there any way you might be able to add the ability to declare a value for this module?

Thanks!
admin Accepted Answer
Admin
Hi,
sorry but I did not understand your request, can you please explain your uses case
  1. more than a month ago
  2. Features Request
  3. # 1
krnsgrffn Accepted Answer
Pro
Yes. I have two types of users, and their registration and user profile fields are very different. I use a field "user_type" and use its value to determine which fields to show for that user. I set that value in the URL in menu links, so the user sees the correct registration form based on how they get to it.

I would like to be able to do something similar with your module, creating two modules that each show the correct set of fields based on the user type, which would require my being able to set the value of the field prior to the module being rendered.

I hope that makes sense?
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
ok, you can use Joomla template override feature to make this, follow these steps:
- Copy file from /modules/mod_jsnform/tmpl/default.php to /templates/your-theme-folder/html/mod_jsnform/second.php
- Open the new file and edit line 18 from
src="<?php echo $url; ?>"
to
src="<?php echo $url; ?>&user_type=VALUE"

- Go to Extensions->Modules->Create a second module of type "Easy Profile - Registration/Edit Profile"
- In the module parameters at "Advanced" tab set the option called "Layout" to "Second" (the title comes from the file name, n this case second.php)
  1. more than a month ago
  2. Features Request
  3. # 3
krnsgrffn Accepted Answer
Pro
Thank you!
  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.