CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Removing http:// from Website Type question
Pages: [1]

Author Topic: Removing http:// from Website Type question  (Read 513 times)

markatup

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.0.77
  • PHP version: 5.2.17
Removing http:// from Website Type question
July 23, 2012, 02:20:57 pm
I've been looking for hours and haven't found anything on this.

I'm trying to collect twitter accounts from people when they register.  I'm using the Website Type question to collect this and have disabled everything but Twitter.  My question: can I remove the http:// from the question that gets entered by default?  Also, can I remove the validation check that prohibits you from typing in just the twitter handle?  I don't want you to have to type the whole address.

Thank you!!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Removing http:// from Website Type question
July 23, 2012, 03:42:33 pm

1. No. You'll need to do this via jQuery in an additional template to remove the http:// that is added (or you can hack the code which is not recommended).

2. You'll need to do this via the validate hook and remove the civicrm validation rule

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Removing http:// from Website Type question

This forum was archived on 2017-11-26.