Support

  1. adil
  2. Support
  3. Sunday, December 30 2018, 02:22 PM
  4.  Subscribe via email
placeholder not showing what i made in field setting but showing always the same value "Type or select some options" i all fields. this problem happen in field type "select"
Attachments (1)
References
  1. http://www.bricodar.com/index.php/fr/
admin Accepted Answer
Admin
Hi,
it works so in the search mode, placeholder is valid only for registration and edit profile.

Related to your previous reply, we propose you a solution for your needs, try to add this javascript code to your template:
jQuery(document).ready(function(){
jQuery('.jsn_search select[multiple="multiple"]').chosen('destroy');
jQuery('.jsn_search select[multiple="multiple"]').addClass('no_multiple').removeAttr('multiple');
jQuery('#jform_metier').prepend('<option value="">--- Metier ---</option>').val(""); /* Placeholder 1 */
jQuery('#jform_provinces').prepend('<option value="">--- Ville ---</option>').val("");; /* Placeholder 2 */
jQuery('#jform_communes').prepend('<option value="">--- Secteur ---</option>').val("");; /* Placeholder 3 */
jQuery('.jsn_search_module select.no_multiple').chosen();
});


This code should add placeholder and transform multiple select into single select ;)
  1. 3 weeks ago
  2. Support
  3. # 1
adil Accepted Answer
Pro
where can i put this Js?
  1. 3 weeks ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
custom CSS (style) and JS (javascript) code should be managed by template, so you can append above code in file called /templates/etplumbing/js/custom.js

NOTE: refresh your browser cache
  1. 3 weeks ago
  2. Support
  3. # 3
adil Accepted Answer
Pro
thanks it works perfect
  1. 3 weeks ago
  2. Support
  3. # 4
adil Accepted Answer
Pro
plz can you adjust javascript code to change placeholder value to match with multilanguage website
i have two language "fr" and "ar"
  1. 3 weeks ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
of course, try with this
jQuery(document).ready(function(){
jQuery('.jsn_search select[multiple="multiple"]').chosen('destroy');
jQuery('.jsn_search select[multiple="multiple"]').addClass('no_multiple').removeAttr('multiple');
jQuery('body.fr-fr #jform_metier').prepend('<option value="">--- Metier ---</option>').val(""); /* Placeholder 1 FR */
jQuery('body.fr-fr #jform_provinces').prepend('<option value="">--- Ville ---</option>').val("");; /* Placeholder 2 FR */
jQuery('body.fr-fr #jform_communes').prepend('<option value="">--- Secteur ---</option>').val("");; /* Placeholder 3 FR */
jQuery('body.en-gb #jform_metier').prepend('<option value="">--- Metier ---</option>').val(""); /* Placeholder 1 EN */
jQuery('body.en-gb #jform_provinces').prepend('<option value="">--- Ville ---</option>').val("");; /* Placeholder 2 EN */
jQuery('body.en-gb #jform_communes').prepend('<option value="">--- Secteur ---</option>').val("");; /* Placeholder 3 EN */
jQuery('.jsn_search_module select.no_multiple').chosen();
});
  1. 3 weeks ago
  2. Support
  3. # 6
adil Accepted Answer
Pro
thanks, it works perfectely
  1. 3 weeks ago
  2. Support
  3. # 7
  • 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.