Support

  1. tpelek
  2. General
  3. Thursday, February 08 2018, 01:52 PM
Hello support team,
I have a dropdown field with two options, YES and NO
I don't want this field be available on registration and in edit profile will be readonly or hidden because
I want to create codition for each option but I don't want the user be possible chache the option.
Just be available/viewable in profile page
It's possible this field have default option by default without be in registration form so the condition work without need to set option manual at first time ?

Thanks in advance.
admin Accepted Answer
Admin
Hi,
It's possible this field have default option by default without be in registration form so the condition work without need to set option manual at first time ?
To not show a field in edit profile and registration pages you can set it to not available on these pages, will work anyway. Unfortunately you can assign a default value in registration form for a field not available in registration page, but you can assign conditions to manage this, for example
- if field is equal to yes then .... (condition for Yes value)
- if field is not equal to yes then ... (condition for No or Empty value)
  1. more than a month ago
  2. General
  3. # 1
tpelek Accepted Answer
Pro
I will explain little better,
I want this field to be view in profile page but no editable (I know how I can do this).
The problem is not the condition because as you mention I can add condition if is empty,
the main problem for me is that I want to show by default a value in profile page and not "No Information Entered"
So there is a way to add default value for field is no in registration form?

Regards
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
yes but you need to write a very simple plugin, follow these steps:
- Download our skeleton plugin (you can find it at http://docs.easy-profile.com/index.php/article/triggers)
- Install it from Joomla Installer
- Enable it from Extensions->Plugins
- Open file /plugins/jsn/skeleton/skeleton.php
- Remove sample functions: "triggerFieldAvatarUpdate" and "triggerProfileUpdate"
- Add a function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
if( $isNew ) $data[ 'here_the_alias_of_your_field' ] = 'here your value' ;
}


With this function on registration you will assign a default value.
  1. more than a month ago
  2. General
  3. # 3
tpelek Accepted Answer
Pro
Thanks,
This work for the value but the condition doesn't work, The condition works only if you select option in profile.
I think a different way to reach my goal.
Thanks.
  1. more than a month ago
  2. General
  3. # 4
  • 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.