a selector field with options 1|Buyer, 2|Seller and 3|Subscriber
this field has condition 1 set to hide both buyer and seller fields (4x fields in total) if selector is empty. This works fine by itself.
I also have a hidden field with default value=1 and condition 1 set to hide only the seller fields if equal to the selector field. I am thinking this should leave the buyer fields as the only thing visible when I choose option=1 in the selector for requesting Buyer access . Well no, only the seller fields are shown, and this makes absolutely no sense. Why? How does the logic of these conditions equate to Seller being visible?
When I move the hidden field above the selector, the page loads correctly with all fields hidden as expected. But when I select option 1 it shows both buyer and seller fields. I get that from the perspective of the selector (no longer empty so all should unhide). But it is like the hidden field isn't even checked. It has default of 1 and should hide seller fields. Why does it not?
a selector field with options 1|Buyer, 2|Seller and 3|Subscriber
this field has condition 1 set to hide both buyer and seller fields (4x fields in total) if selector is empty. This works fine by itself.
I also have a hidden field with default value=1 and condition 1 set to hide only the seller fields if equal to the selector field. I am thinking this should leave the buyer fields as the only thing visible when I choose option=1 in the selector for requesting Buyer access . Well no, only the seller fields are shown, and this makes absolutely no sense. Why? How does the logic of these conditions equate to Seller being visible?
When I move the hidden field above the selector, the page loads correctly with all fields hidden as expected. But when I select option 1 it shows both buyer and seller fields.
You can work with not equal condition.
example:
select have this option
1|Seller
2|buyer
set condition 1
if select not equal to custom value 1 hide Seller Fields
set condition 2
if select not equal to custom value 2 hide Buyer Fields
the English is too broken to follow
None of the fields are hiding
I am also noticing now that I am getting randomly logged out, after logging in
the accessrequest field is NOT empty
EasyProfile is far from easy
Is there a way to reduce the space between delimiter fields?
$data['accessrequest']='';
$data['alias_of_term_of_request']='';
$html[] = $text;
$html[] = '<div id="'.$this->id.'" >';
$html[] = $text;
$html[] = '</div>';
$data('accessrequest')='';
$data('alias_of_term_of_request')='';
Does EasyProfile support a button field
public function triggerFieldAccessrequestUpdate($user,$data,$changed,$isNew)
{
$app=JFactory::getApplication();
// Buyer not require approval
if($data['accessrequest']=='buyer')
{
JUserHelper::addUserToGroup($user->id,3); // 3 is Id of group
$app->enqueueMessage('Now you are Buyer','warning'); // Message to display after save
}
// Seller require approval
if($data['accessrequest']=='seller')
{
JFactory::getMailer()->sendMail(
$user->email, // Sender Mail
$user->name, // Sender Name
'[email protected]', // Receiver Mail
'Request Seller', // Subject Mail
$user->name.' asks to become a Seller' // Body Mail
);
$app->enqueueMessage('Your request is pending approval','warning'); // Message to display after save
}
}
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.
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
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.
Our site uses non fat, delicious cookies which help us improve your user experience. You can read more about it in our Legal page.