Support

  1. jorlan
  2. Support
  3. Friday, February 03 2017, 12:49 PM
Hi,

I've set up a radiobutton field with yes/no values that is only visible on editing profile. Using the field's Parameters > Conditions I've set up this field as a switch to show or hide a group of other fields. This has some effects that I did not expect:

  • When hiding the target fields, they are no longer visible for this user's record for anyone at all, including the user himself and super users.
  • When re-enabling showing these fields, it turns out that all their former contents are deleted.


Is this intended behavior? I rather expected the fields to be hidden but still keeping their contents. Of course, showing the fields to the user and/or the super admin only is useful if the contents is kept.

Kind regards, Frits
Accepted Answer
admin Accepted Answer
Admin
Is this correct, and if so, then will it be absolutely impossble to find these users?
No, SQL Where filter only the users on the list, it does not manage Profile Access.

Easy Profile does not manage this, but it's possible with a simple template override, for example:
- Copy file from /components/com_jsn/views/profile/tmpl/default.php to /templates/your_template_folder/html/com_jsn/profile/default.php (Joomla template override feature)
- Edit new file and add following code at line 24 (this is an example)

if( $user->your_radio_field_alias == 0 ) die('You cannot access to this profile');


NOTE: this code is not tested and not supported, it is only for example purpose, I assumed your radio field have 0 for no and 1 for yes.

NOTE2: with template override feature you will not lose modifications after upgrade to a new version.

NOTE3: There are many other possibilities but this is the most simple ;)
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Yes, this is correct behavior, conditions are valid for entire system, not only on the edit profile form.
Of course all hidden fields need to be empty otherwise this create conflicts with other conditions.

You question is correct, "Hide field" text can create confusion, because when a field is hidden from a condition it will be removed from the profile. "Hide field" text is a convention to make understandable the conditions.

I rather expected the fields to be hidden but still keeping their contents. Of course, showing the fields to the user and/or the super admin only is useful if the contents is kept.
To show fields to user and super admin then you can set to parameter "Visible for" to "Special" (see tip in screenshot).
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 1
jorlan Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
jorlan Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 3
jorlan Accepted Answer
Thx for your reply.

I will discuss in our project group if this is a strict requirement; if so then I think I'll manage to create an override.

Maybe this would be an interesting addition to Easy Profile in the future?


Frits
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Maybe this would be an interesting addition to Easy Profile in the future?
Yes, you are not the first customer that ask for this, so we will add this in our todo list :D . Unfortunately the next release is ready and we only need to make the final tests, therefore this feature can't be added in next version :(
  1. more than a month ago
  2. Support
  3. # 5
  • 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.