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.
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.
Any update on this?
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.
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
I have tried this but it doesn't work, the select does not change.
It has stopped working for me as well.
Neither .selectmenu('refresh', true); nor .trigger("change"); cause the value to update.
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.
HI Jason,
Glad it works.
Hi Sam,
Please Jasons code and if it will not help you please show us your implementation.
Regards.
neither of Jason's code has worked.
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.