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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Change default in select box
Pages: [1]

Author Topic: Change default in select box  (Read 646 times)

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Change default in select box
July 11, 2011, 05:58:38 am
I'm displaying a select box for users to enter their website addresses. The default is "Home" and I want to change this. I can't find anything in "Administer/Options lists" where I can change the default for any of the options lists.

Is it possible to do this and if so, how?

TIA

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Change default in select box
July 11, 2011, 12:47:37 pm
YOUR-SITE.ORG/civicrm/admin/locationType?reset=1

that is a global change of default location type.

If you want only to change this specific page, use Jquery
http://stackoverflow.com/questions/499405/change-the-selected-value-of-a-drop-down-list-with-jquery
Try CiviTeacher: the online video tutorial CiviCRM learning library.

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: Change default in select box
July 27, 2011, 03:09:55 am
Quote from: Stoob on July 11, 2011, 12:47:37 pm
YOUR-SITE.ORG/civicrm/admin/locationType?reset=1

Page not found - can I get to it from a menu?

[later] - found it thanks as /administrator/?option=com_civicrm&task=civicrm/admin/locationType&reset=1

However, this is for global change not just for website (or phone, etc). Is it possible to do it on a per item basis?
« Last Edit: July 27, 2011, 03:19:55 am by trevorwood »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Change default in select box

This forum was archived on 2017-11-26.