February 4, 2009 • posted by KickApps
By default, profile photos are an optional field when a user registers for a site. If you want to make a profile photo required on all registrations, you can add the following jQuery to the footer of your Global Page Template: if (Ka.Info.PAGE == “login/registerUser.jsp”){ $j(‘#photoPortrait’) .attr(‘required’,’required’) .attr(‘errorKey’,’photoRequired’); Ka.formValidation.messages.photoRequired = ‘A picture is required.’; [...]