Support

  1. HDcms
  2. General
  3. Tuesday, January 15 2019, 10:37 AM
Hello,
I do a number of user tests behind members to see where users are having problems.
One of the most important is on the registration page.
The first time he arrives on this page, they do not understand the layout of the tabs (picture 1). How would it be possible
a) put the tabs as for the profile view page
b) all fields of all visible tabs. Example
Tab 1
field 11
field 12
Tab 2
field 21
field 22
tab 3

The display of the profile page in visualization (image 2) does not change

II / a bit out of your support, but could you help me start to force members to check at least 1 field from several fields checkboxlist
(picture 3)?
Indeed, nobody does it :-(

Regards
Attachments (3)
admin Accepted Answer
Admin
Hi,
sorry for late reply

a) Probably the description of each fieldgroup is too long, so the tab header need to deal entire row. Try to remove the description from fieldgroup and put it in a HTML delimiter field type

b) From Components->Easy Profile->Options->Layout Settings you can set the parameter "View the form in tabs" to "No"

II / a bit out of your support, but could you help me start to force members to check at least 1 field from several fields checkboxlist
(picture 3)?
Indeed, nobody does it :-(
Unfortunately this is not possible with a simple way, anyway tomorrow I will try to develop a Javascript code that fit this your need ;)
  1. more than a month ago
  2. General
  3. # 1
HDcms Accepted Answer
Hello
1/ ok tahnaks
2/ I do not know if I should answer.
I am actually interested if it is possible.
This is not urgent
Regards
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
2) today I will send you the javascript code to do this...sorry for late :D
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
Hi,
to make this please follow these steps:
- Create a hidden field type with alias "check_options" in the same tab of checkboxes and set it as required
- Add following javascript code to your template:
var tab_number = 1; // Set here your tab number 0,1,2,3....
jQuery(window).load(function(){
checkoptions();
jQuery('#member-registration .jsn-form-fieldset[data-index="'+tab_number+'"] input[type="checkbox"],#member-profile .jsn-form-fieldset[data-index="'+tab_number+'"] input[type="checkbox"]').change(function(){
checkoptions();
});
});
function checkoptions(){
if(!jQuery('#member-registration .jsn-form-fieldset[data-index="'+tab_number+'"] input[type="checkbox"]:checked,#member-profile .jsn-form-fieldset[data-index="'+tab_number+'"] input[type="checkbox"]:checked').length){
jQuery('#jform_check_options').val('');
}
else {
jQuery('#jform_check_options').val('ok');
}
}


Basically this function fill the value in the required hidden field if at least one checkbox is checked.
  1. more than a month ago
  2. General
  3. # 4
HDcms Accepted Answer
Hello
I created a field with the alais asked (see image)
I put the code in "/templates/shaper_helixultimate/js" without modifying it
I edited a profile by checking the check box.
I have no message!

a) what type of field should I create?
b) Or I put the alert text "you have to tick to a category ..."

Regards
  1. more than a month ago
  2. General
  3. # 5
HDcms Accepted Answer
oops attached file. I can not edit the previous post !!
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
Hi,
can you please post me your registration link to check javascripts behaviors?
  1. more than a month ago
  2. General
  3. # 7
HDcms Accepted Answer
HI
Ok link provided for this user
References
  1. https://www.onsort.eu/fr/profil-titre-ss-menu/editer-mon-profil
  1. more than a month ago
  2. General
  3. # 8
admin Accepted Answer
Admin
Hi,
ok, I assume you have tab view enabled.
anyway try to replace with this code, it will works with or without tab view:
jQuery(window).load(function(){
checkoptions();
jQuery('#jform_check_options').closest('fieldset').find('input[type="checkbox"]').change(function(){
checkoptions();
});
});
function checkoptions(){
if(!jQuery('#jform_check_options').closest('fieldset').find('input[type="checkbox"]:checked').length){
jQuery('#jform_check_options').val('');
}
else {
jQuery('#jform_check_options').val('ok');
}
}


NOTE: this code will add a value in the field "check_options" if at least one checkbox is checked. So the field "check_options" should be required and hidden. If you want to hide this field then you could add following CSS code
.control-group.check_options-group {display:none !important}
  1. more than a month ago
  2. General
  3. # 9
HDcms Accepted Answer
Hi,
I'm sorry but it does not work (you can check it by logging in)

edit mode no longer has tabs to make life easier for the member!
my field is a text field. no problem !?
Where can I put the message "you have to select a category ...""

Of course I will hide the fields: alias "check_options", when it will work with back office. I just wanted to see if there was a change !!
Regards
  1. more than a month ago
  2. General
  3. # 10
admin Accepted Answer
Admin
I'm sorry but it does not work
I have just tried and it works, see screenshot, if I select at least one checkbox the text field value will be "ok", otherwise it will be empty.
my field is a text field. no problem !?
Yes, no problem. But it need to be required.
Where can I put the message "you have to select a category ...""
This could be the name of your text field, basically if you does not select any checkbox the text field will be empty, so it return a error like "Invalid Field: you have to select a category ..." (this is the Joomla error message "Invalid Field:" + field name)
Attachments (1)
  1. more than a month ago
  2. General
  3. # 11
HDcms Accepted Answer
Hi
Thank you for this follow up
If I check a box, I have "ok" that comes to fill the field

I do not have my error message "(this is the Joomla error message" Invalid Field: "+ field name) when I save the profile if there is no check box. tested with 2 member accounts on firefox and chrome (Ubuntu).
Did you register a profile without box check !?
  1. more than a month ago
  2. General
  3. # 12
admin Accepted Answer
Admin
This is because the field called "Test au moins une catégorie renseignée" is not required, you need to set it as required
  1. more than a month ago
  2. General
  3. # 13
HDcms Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 14
  • 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.