Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Default Values for fields (country)

Default Values for fields (country) 14 years 6 months ago #8265

  • piggybank
  • piggybank's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Is there a way to specify a default value for the core fields. Specifically, my client wants the country field to be defaulted.

Please Log in or Create an account to join the conversation.

Default Values for fields (country) 14 years 6 months ago #8272

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
The only way to have default values in core fields is for the fields to auto-populate data from a user profile when you are integrating with Community Builder or JomSocial. Besides that, the only field where you can set a default is Country. As stated in a couple other forum posts:

Locate the file country.htm in /components/com_dtregister.
This contains the list of countries to choose from. Scroll down to find United States. You'll see:
<option value="United States" selected="selected">United States</option>

Remove the code: selected="selected"

Insert the selected value into the option tag for the country you want to be the default option.

Thanks.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.169 seconds