names are correct and are the same in js
names are correct and are the same in js
Could you clarify what do you mean on "acting very strange"?
the navigation is not working, the text cursor is appearing on selectmenu component, sellectmenu is not loaded we page opens, but updates after you save again, to and from selectmenus on book page are now undifined
In file selectmenu.js add next JS function
codefunction setSelectMenuOptionsForAddresses(select, options) {
options.sort(function(a, b){return a.localeCompare(b);} );
select.children().each(function() {$(this).remove()});
for(i=0; i<options.length; i++) {
var label = options;
var newOption = $('<option value="'+label+'">'+label+'</option>');
select.append(newOption);
}
select.refresh();
}/code
On page Addresses you should call setSelectMenuOptionsForAddresses function instead of setSelectMenuOptions (on load, save and delete)
Hi Marina,
I have inserted to above code in selectmenu.js
navigation still not working.
And as I am having a blonde day!
I am not sure what you meant by this
On page Addresses you should call setSelectMenuOptionsForAddresses function instead of setSelectMenuOptions (on load, save and delete)
Just replace setSelectMenuOptions to setSelectMenuOptionsForAddresses in JS which you run on Load event, on Save and Delete Selcted buttons
do you mean change
setSelectMenuOptions(Tiggr('addressselectmenu'), myload('variable_name'));
to
setSelectMenuOptionsForAddresses(Tiggr('addressselectmenu'), myload('variable_name'));
I have done the above, I cannot navigate to book pageapp just hangs and the text cursor is appearing on the taxicoselectmenu?
Check is there any JS error in console