Page 2 of 6

save text input to selectmenu

Posted: Wed Jan 16, 2013 5:16 pm
by Michael4771079

thanks Katya,
I have changed the code to this,


save text input to selectmenu

Posted: Wed Jan 16, 2013 5:25 pm
by Kateryna Grynko

I checked the code that Marina advised - it works.


save text input to selectmenu

Posted: Thu Jan 17, 2013 10:27 am
by Michael4771079

This is what I used, no result

code
var newOption = '<option value=​"' + Tiggzi("coemailtextinput_email")&#46;val() + '">' + Tiggzi("conametextinput_name")&#46;val() + '<&#47;option>';
Tiggzi("taxicoselectmenu")&#46;append(newOption)&#46;selectmenu('refresh');
/code


save text input to selectmenu

Posted: Thu Jan 17, 2013 10:49 am
by Maryna Brodina

Please ensure you are using correct component names


save text input to selectmenu

Posted: Thu Jan 17, 2013 11:09 am
by Michael4771079

result is "undefined"


save text input to selectmenu

Posted: Thu Jan 17, 2013 1:43 pm
by Michael4771079

Hi Marina,
I have checked to component names, all are correct, when I click to save a selection is saved but the list reads undefined


save text input to selectmenu

Posted: Thu Jan 17, 2013 1:45 pm
by Maryna Brodina

Could you share your project with support@tiggzi.com?


save text input to selectmenu

Posted: Thu Jan 17, 2013 2:01 pm
by Michael4771079

Thanks Marina, shared


save text input to selectmenu

Posted: Thu Jan 17, 2013 3:09 pm
by Maryna Brodina

You have incorrect component names. It should be:

codevar newOption = '<option value=​"' + Tiggzi("coemailtextinput")&#46;val() + '">' + Tiggzi("conametextinput")&#46;val() + '<&#47;option>';
Tiggzi("taxicoselectmenu")&#46;append(newOption)&#46;selectmenu('refresh');/code

Instead of coemailtextinput_email should be coemailtextinput and
instead of conametextinput_name should be conametextinput


save text input to selectmenu

Posted: Thu Jan 17, 2013 3:49 pm
by Michael4771079

Thank you Marina,
this works, however I dont appear to have a variable to pull the list created from local storage