Support

  1. bonnie_lass
  2. Support
  3. Monday, January 22 2018, 11:52 AM
I'm trying to pass a value via url to edit registration page in order to hide/show different fields depending on the value.

I've created a hidden field called usertype and alias usertype. I have set conditions to:
If this field is equal to custom value forskare the hide fields [....]
Make inverse condition: No.

I can't get the edit registrastion page to react to the passed value in the url- I've tried with sef adding ?usertype=forskare and without sef &jform[usertype]=forskare but the hidden value is still empty or doesn't react.

I've been looking at this for hours and I can't see what I'm doing wrong.
bonnie_lass Accepted Answer
Pro
Ok, perhaps I need to reconsider my layout.. Thanks anyway!
  1. more than a month ago
  2. Support
  3. # 1
admin Accepted Answer
Admin
Hi,
However, the edit profile page doesn't seem to react the same as registering profile page
This feature works only in Registration form.

Why only in registration? This feature assign a default value for a field, but Joomla assign a default value only when the field's value is empty. So in edit profile something like this can create unexpected behaviors.
  1. more than a month ago
  2. Support
  3. # 2
bonnie_lass Accepted Answer
Pro
Thank you for your help and patience, I'm beginning to understand how it works.
However, the edit profile page doesn't seem to react the same as registering profile page. The hidden value usertype remains empty regardless of value in url in edit profile page. Does the register profile page and the edit profile not react the same to hidden values in urls?

The scenario I'm after is following:

- Regular user going to url
index.php?option=com_users&view=registration&Itemid=5710&usertype=registered
should only see joomla core fields

- Usergroup Forskare signing up for the user list "Forskarkatalogen" going to following url
index.php?option=com_users&view=registration&Itemid=5710&usertype=forskare
should see joomla core fields + forskarkatalogen fields

- Usergroup forelasare going to url
index.php?option=com_users&view=registration&Itemid=5710&usertype=forelasare
should see joomla core fields + forelasarbanken fields

The url is controlling what you register for so to speak.

Then I wish the url should also control what the user is editing. (A user can be a member of both usergroups)

The url
index.php?option=com_users&view=profile&layout=edit&Itemid=5710&usertype=registered
should only show joomla core fields

index.php?option=com_users&view=profile&layout=edit&Itemid=5710&usertype=forskare
should only show joomla core fields + forskarkatalogen fields

index.php?option=com_users&view=profile&layout=edit&Itemid=5710&usertype=forelasare
should only show joomla core fields + forelasarbanken fields

But the edit page doesn't seem to get the value from the url...

I'm sorry for being difficult but I am very interested in seeing if this could work.

Best regards,
Nina
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
Hi, there are 2 problems:

1) URL should be something like http://j3.genealogi.se/index.php?option=com_users&view=registration&Itemid=5710&usertype=forskare (so usertype instead jform[usertype])

2) all fields need to be available in registration form. Condition on field usertype will hide/show these fields

Now I have set these fields available in registration form, so try the 2 differents URLs:
References
  1. http://j3.genealogi.se/index.php?option=com_users&view=registration&Itemid=5710&usertype=forskare
  2. http://j3.genealogi.se/index.php?option=com_users&view=registration&Itemid=5710
  1. more than a month ago
  2. Support
  3. # 4
bonnie_lass Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Hi,
you have set "Available for" parameter to "Registered", therefore this field is not available for guest users, so it is not available in registration form.

To fix this you need to set "Available for" parameter to "Public"
  1. more than a month ago
  2. Support
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.