Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Appery().val() has stopped updating selected item in dropdown selector lists

Hmm, I have had browsers act glitchy with that. (safari worked but firefox didn't). I have reset the home page to the "Sign In" page so that should solve it. Let me know if there is anything else that I can do.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Appery().val() has stopped updating selected item in dropdown selector lists

Hi Man,

Thanks, currently i've been able to test it.

This code requires value of the item(not a title).

So you need to use following code instead of yours:

pre

var current = localStorage.getItem("_accountUserName");
var currentUserId = localStorage.getItem("userId");
//alert(current);
//Appery("selectUserDropdown").val(current).trigger("change");

var yourSelect = Appery("selectUserDropdown");
//yourSelect.val(current);
yourSelect.val(currentUserId);
yourSelect.selectmenu('refresh', true);

localStorage.setItem("profileSwapUserID",currentUserId);
localStorage.setItem("profileSwapUsername",current);

/pre

Regards.

Matt6607699
Posts: 0
Joined: Sat Jan 25, 2014 7:18 am

Appery().val() has stopped updating selected item in dropdown selector lists

Oh ok, thank you for pointing that out! I tried it with the value instead of Label and it work perfectly now!
Thank you again for the help

Sam Safo
Posts: 0
Joined: Tue Sep 23, 2014 8:44 pm

Appery().val() has stopped updating selected item in dropdown selector lists

I have tried this but it doesn't work, the select does not change.

Jason Cheek
Posts: 0
Joined: Sun Jan 12, 2014 8:00 am

Appery().val() has stopped updating selected item in dropdown selector lists

It has stopped working for me as well.

Neither .selectmenu('refresh', true); nor .trigger("change"); cause the value to update.

Jason Cheek
Posts: 0
Joined: Sun Jan 12, 2014 8:00 am

Appery().val() has stopped updating selected item in dropdown selector lists

Ok, it seems to work now if I break up my chained calls and only call one function per line like this:

var $startHour = Appery("selectStartHour");
$startHour.val(moment().format("H"));
$startHour.selectmenu('refresh', true); //.trigger("change");

Both trigger("change") and selectmenu('refresh', true) seem to work like this.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Appery().val() has stopped updating selected item in dropdown selector lists

HI Jason,

Glad it works.

Hi Sam,

Please Jasons code and if it will not help you please show us your implementation.

Regards.

Sam Safo
Posts: 0
Joined: Tue Sep 23, 2014 8:44 pm

Appery().val() has stopped updating selected item in dropdown selector lists

neither of Jason's code has worked.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Appery().val() has stopped updating selected item in dropdown selector lists

Hi Sam,

Can you show us what have you tried and how it's not working now for you.

And what you want to get as a desirable result.

Return to “Issues”