How to set default website custom field value to http://
From JReviews Documentation
Revision as of 17:59, 19 October 2010 by Jreviews (Talk | contribs) (Created page with "The website custom field requires a full url to be entered, including <span style="color: blue">http://</span>. If users enter urls without it, the validation will fail. To pre...")
The website custom field requires a full url to be entered, including http://.
If users enter urls without it, the validation will fail.
To prevent this, you can use Javascript to automatically add http:// as the field value.
To do that, edit this file:
- \com_jreviews\jreviews\views\themes\default\listings\create_form.thtml
Find this code in the file:
<?php /********************************************************************************** * EDIT HTML BELOW THIS LINE **********************************************************************************/ ?>
and paste the Javascript code below it: