Home › Forums › Plugin Support › Dropdown not selecting values
Tagged: dropdown, error, not saving
- This topic has 11 replies, 2 voices, and was last updated 11 years, 9 months ago by Support.
-
AuthorPosts
-
February 5, 2013 at 12:29 am #2987February 5, 2013 at 1:48 am #2991SupportMember
Hello,
Did you put those data to “Field Options” with separated by comma (,) ?Thanks.
February 5, 2013 at 2:28 am #2994dotvinceMemberYes, the dropdown shows up fine and the value and text of the the options show up fine. The issue is that when I click save, the value from the dropdown apparently is not being saved. All the other fields save fine except that one.
February 6, 2013 at 1:05 am #2997SupportMemberHello,
Please did you use same meta key twice in same form, It will be better if you can set a test account for us to check.You can send it by http://user-meta.com/contact-us/
Thanks.
February 6, 2013 at 1:37 am #2998dotvinceMemberThe same key is not used twice. The site is not publicly accessible. Can you not test on your end with those values? I can send you the comma separated list. My guess is that it has something to do with the values of the dropdown. Maybe some of those characters are not being escaped properly.
Below is the list of options that were added to the field options input.
(GMT-10:00) Hawaii,(GMT-09:00) Alaska,(GMT-08:00) Pacific Time (US & Canada),(GMT-07:00) Arizona,(GMT-07:00) Mountain Time (US & Canada),(GMT-06:00) Central Time (US & Canada),(GMT-05:00) Eastern Time (US & Canada),(GMT-05:00) Indiana (East),(GMT-11:00) International Date Line West,(GMT-11:00) Midway Island,(GMT-11:00) Samoa,(GMT-08:00) Tijuana,(GMT-07:00) Chihuahua,(GMT-07:00) Mazatlan,(GMT-06:00) Central America,(GMT-06:00) Guadalajara,(GMT-06:00) Mexico City,(GMT-06:00) Monterrey,(GMT-06:00) Saskatchewan,(GMT-05:00) Bogota,(GMT-05:00) Lima,(GMT-05:00) Quito,(GMT-04:30) Caracas,(GMT-04:00) Atlantic Time (Canada),(GMT-04:00) La Paz,(GMT-04:00) Santiago,(GMT-03:30) Newfoundland,(GMT-03:00) Brasilia,(GMT-03:00) Buenos Aires,(GMT-03:00) Georgetown,(GMT-03:00) Greenland,(GMT-02:00) Mid-Atlantic,(GMT-01:00) Azores,(GMT-01:00) Cape Verde Is.,(GMT) Casablanca,(GMT) Dublin,(GMT) Edinburgh,(GMT) Lisbon,(GMT) London,(GMT) Monrovia,(GMT+01:00) Amsterdam,(GMT+01:00) Belgrade,(GMT+01:00) Berlin,(GMT+01:00) Bern,(GMT+01:00) Bratislava,(GMT+01:00) Brussels,(GMT+01:00) Budapest,(GMT+01:00) Copenhagen,(GMT+01:00) Ljubljana,(GMT+01:00) Madrid,(GMT+01:00) Paris,(GMT+01:00) Prague,(GMT+01:00) Rome,(GMT+01:00) Sarajevo,(GMT+01:00) Skopje,(GMT+01:00) Stockholm,(GMT+01:00) Vienna,(GMT+01:00) Warsaw,(GMT+01:00) West Central Africa,(GMT+01:00) Zagreb,(GMT+02:00) Athens,(GMT+02:00) Bucharest,(GMT+02:00) Cairo,(GMT+02:00) Harare,(GMT+02:00) Helsinki,(GMT+02:00) Istanbul,(GMT+02:00) Jerusalem,(GMT+02:00) Kyev,(GMT+02:00) Minsk,(GMT+02:00) Pretoria,(GMT+02:00) Riga,(GMT+02:00) Sofia,(GMT+02:00) Tallinn,(GMT+02:00) Vilnius,(GMT+03:00) Baghdad,(GMT+03:00) Kuwait,(GMT+03:00) Moscow,(GMT+03:00) Nairobi,(GMT+03:00) Riyadh,(GMT+03:00) St. Petersburg,(GMT+03:00) Volgograd,(GMT+03:30) Tehran,(GMT+04:00) Abu Dhabi,(GMT+04:00) Baku,(GMT+04:00) Muscat,(GMT+04:00) Tbilisi,(GMT+04:00) Yerevan,(GMT+04:30) Kabul,(GMT+05:00) Ekaterinburg,(GMT+05:00) Islamabad,(GMT+05:00) Karachi,(GMT+05:00) Tashkent,(GMT+05:30) Chennai,(GMT+05:30) Kolkata,(GMT+05:30) Mumbai,(GMT+05:30) New Delhi,(GMT+05:45) Kathmandu,(GMT+06:00) Almaty,(GMT+06:00) Astana,(GMT+06:00) Dhaka,(GMT+06:00) Novosibirsk,(GMT+06:00) Sri Jayawardenepura,(GMT+06:30) Rangoon,(GMT+07:00) Bangkok,(GMT+07:00) Hanoi,(GMT+07:00) Jakarta,(GMT+07:00) Krasnoyarsk,(GMT+08:00) Beijing,(GMT+08:00) Chongqing,(GMT+08:00) Hong Kong,(GMT+08:00) Irkutsk,(GMT+08:00) Kuala Lumpur,(GMT+08:00) Perth,(GMT+08:00) Singapore,(GMT+08:00) Taipei,(GMT+08:00) Ulaan Bataar,(GMT+08:00) Urumqi,(GMT+09:00) Osaka,(GMT+09:00) Sapporo,(GMT+09:00) Seoul,(GMT+09:00) Tokyo,(GMT+09:00) Yakutsk,(GMT+09:30) Adelaide,(GMT+09:30) Darwin,(GMT+10:00) Brisbane,(GMT+10:00) Canberra,(GMT+10:00) Guam,(GMT+10:00) Hobart,(GMT+10:00) Melbourne,(GMT+10:00) Port Moresby,(GMT+10:00) Sydney,(GMT+10:00) Vladivostok,(GMT+11:00) Magadan,(GMT+11:00) New Caledonia,(GMT+11:00) Solomon Is.,(GMT+12:00) Auckland,(GMT+12:00) Fiji,(GMT+12:00) Kamchatka,(GMT+12:00) Marshall Is.,(GMT+12:00) Wellington,(GMT+13:00) Nukualofa
February 6, 2013 at 4:11 pm #3001SupportMemberHello,
This is working here, can you please send a screens-shoot for the corresponding field settings (In Fields Editor)Thanks.
February 6, 2013 at 5:57 pm #3004dotvinceMemberHere is a link to a screenshot. I also tried changing the meta key
February 12, 2013 at 11:56 pm #3021dotvinceMemberAny updates on this?
February 13, 2013 at 1:01 am #3024dotvinceMemberHere is some additional information. Although this is a warning, it happens on all the fields in the admin panel that were added by user meta pro.
Notice: Undefined variable: uniqueID in wp-content\plugins\user-meta\views\generateField.php on line 23
I really need a resolution to this issue. Thanks
February 13, 2013 at 1:22 am #3026SupportMemberHello,
It seems that, your settings is correct.
To find out the issue, select field type “checkbox” or “radio” and check is that working with those field and also check a dropdown with similar but less amount of value.Let me know what happend
Thanks.
February 13, 2013 at 1:36 am #3027dotvinceMemberThe problem seems to be the ampersand in the value. Any value selected with the & symbol in it does not save.
so selecting (GMT-08:00) Pacific Time (US & Canada) does not work.
I can successfully save other values in the dropdown. Please provide a patch so that I can update the plugin.
Thanks
February 13, 2013 at 1:15 pm #3029SupportMemberHello,
Here is the patch:
Open user-meta/controllers/umFieldsController.php and add following line immediately before line 85 (for version 1.1.3rc2):
$data = apply_filters( 'user_meta_pre_fields_editor_update', $data );
And add following lines of code in your functions.php (Under active theme directory):
add_filter( 'user_meta_pre_fields_editor_update', 'user_meta_pre_fields_editor_update_Function' );
function user_meta_pre_fields_editor_update_Function( $fields ){
$fieldID = "Put your dropdown field id here";
if( !empty( $fields[$fieldID]['options'] ) )
$fields[$fieldID]['options'] = esc_attr( $fields[$fieldID]['options'] );
return $fields;
}
Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.