1. kennethefford
  2. General
  3. Monday, April 28 2014, 07:03 AM
Hi,

I am sure this will be an easy one. How does one make a profile field's value come from the value in another profile field? Thanks.

Ken
admin Accepted Answer
Admin
you can edit the field value with simple code in skeleton plugin:
$data['field1']=$data['field2'];

is similar to the reset of the fields that you use.

Also you can do some operation or counter.

example for counter:
$data['field']=$data['field']+1;
  1. more than a month ago
  2. General
  3. # 1
kennethefford Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
When user update their profile, Easy Profile launch the trigger for each changed field.

If there are some field changed at the end launch triggerProfileUpdate.

When one triggerFieldxxxxxxUpdate is triggered always is trigger also triggerProfileUpdate

I will explain with an example:
triggerProfileUpdate($user,$data,$changed,$isNew){
if(in_array('accessrequest',$changed))
{
//CODE
}
}

is the same as
triggerFieldAccessrequestUpdate($user,$data,$changed,$isNew){
//CODE
}
  1. more than a month ago
  2. General
  3. # 3
kennethefford Accepted Answer
Pro
Thank you, this clarified enough for me to implement and test, and all looks good. One additional question, and again should be easy. Is it possible, and if so, how is it possible to change a field to read only from within the skeleton plugin trigger routines I have written? Being able to do this would be very helpful.

Ken
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
The same way to edit other field, add $data['alias_of_readoly_field']='value';
  1. more than a month ago
  2. General
  3. # 5
kennethefford Accepted Answer
Pro
Perfect, thank you. Your product is so very good and capable, and the support is second to none! Honestly, great job.

Ken
  1. more than a month ago
  2. General
  3. # 6
kennethefford Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 7
admin Accepted Answer
Admin
is this changing the field or changing its property to "readonly"?

this row only assign a value to a field (whether that is readonly or not).

What i think will work is to have an additional action to apply on a condition parameter

Yes, we plan in future to implement in condition possibility to change readonly and required status

What I want to achieve is this

the easiest way is this: you must create a field(integer,text or what do you prefer) to check if privileges are assigned or not, set this field in skeleton plugin to 1; set condition for this field to hide access request field if equal to 1; set this field hidden on profile,edit and registration page.

also, if you want to see access request on profile you can create 3 HTML delimiter field:
title,description,Access Level (dropdown field in edit field page on the right)
Access Request,Buyer,Buyer Access Level
Access Request,Seller, Seller Access Level
Access Request,Subscriber, Subscriber Access Level

first you must create Access Level for Buyer, Seller and Subscriber groups from Administration->User->Access Level
  1. more than a month ago
  2. General
  3. # 8
kennethefford Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 9
kennethefford Accepted Answer
Pro
But thank you, once again. In the future, I look forward to this being managed by parameter conditions that also manage READONLY and REQUIRED properties, but for now I think your thoughts combined with mine have set me on the correct path to implement. Thanks very much.

Ken
  1. more than a month ago
  2. General
  3. # 10
saltmedia Accepted Answer
Easy Profile Support wrote:
Yes, we plan in future to implement in condition possibility to change readonly and required status


Hi, another vote for this feature. Would love to see some hidden fields be not required that switch to required when they become visible due to condition.
  1. more than a month ago
  2. General
  3. # 11
admin Accepted Answer
Admin
Hi,
You can already do this.
If a required field is hidden by a condition become not required. When return visible become required
  1. more than a month ago
  2. General
  3. # 12
saltmedia Accepted Answer
Easy Profile Support wrote:

Hi,
You can already do this.
If a required field is hidden by a condition become not required. When return visible become required


You're right. It seems I was mistaken. This component is great, thanks for the good work.
  1. more than a month ago
  2. General
  3. # 13
  • 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.