-
AuthorPosts
-
April 1, 2015 at 1:50 pm #205210
Hi,
I added a custom select field to the user profile which displays all the countries.
plugins/user/profile/profiles/profile.xml:
<field
name="country2"
type="sql"
id="country2"
description="PLG_USER_PROFILE_FIELD_COUNTRY2_DESC"
filter="string"
key_field="id"
value_field="name"
label="PLG_USER_PROFILE_FIELD_COUNTRY2_LABEL"
query="SELECT id, name FROM countrylist ORDER by name"
/>plugins/user/profile/profile.xml:
<field name="register-require_country2" type="list"
description="PLG_USER_PROFILE_FIELD_COUNTRY2_DESC"
label="PLG_USER_PROFILE_FIELD_COUNTRY2_LABEL"
>
<option value="2">JOPTION_REQUIRED</option>
<option value="1">JOPTION_OPTIONAL</option>
<option value="0">JDISABLED</option>
</field>If I go to edit mode on the user’s profile page, the dropdown box seems displayed correctly, but when I click it to change the country, I get the thing which is on the attached joomlaproblem.jpg
We tested this from Chrome. It seems it is working from Firefox.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by Pankaj Sharma 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Adding custom combobox field to user profile display problems
Viewing 2 posts - 1 through 2 (of 2 total)