Page 1 of 2

option value in select field

Posted: Tue Feb 05, 2013 9:25 pm
by Yarden Gur

I need to set the value of few options in select field to be numbers but the I get error msg saying that value can not be only numbers / start with numbers. What can I do to bypass ?

Thanks.


option value in select field

Posted: Tue Feb 05, 2013 9:37 pm
by Kateryna Grynko

Hi,
You can add options to Select using following JavaScript code on page Load:
codevar newOption1 = '<option value=​"1">1<&#47;option>',
newOption2 = '<option value=​"123">123<&#47;option>';
Tiggzi("mobileselectmenuName")&#46;append(newOption1)&#46;append(newOption2)&#46;selectmenu('refresh');/code


option value in select field

Posted: Tue Feb 05, 2013 10:09 pm
by Michael4771079

Hi Katya,
I have just seen this post, I am waiting for a bug in the new builder to be fixed, the problem being the selectmenu component will not accept an email as a value.

your reply to Yarden above, is this the fix?
will it work with email to value?
or is this a temp fix?

thanks as always


option value in select field

Posted: Tue Feb 05, 2013 10:17 pm
by Yarden Gur

Hi Katya,

Thanks for your help.
Also I have two fields one for telephone and one for email.
I want to change it from input type="text" to input type="tel" or input type="email" so that way when user click on the input it automatically open keypad instead of full keyboard, how can I do that?


option value in select field

Posted: Tue Feb 05, 2013 10:19 pm
by Kateryna Grynko

Hi Michael,
Yes, this is the fix.
It will work with e-mail.


option value in select field

Posted: Tue Feb 05, 2013 10:24 pm
by Michael4771079

Thanks Katya,
do I use the code as is and just change component name?
or does the code differ for @ or _ and numbers


option value in select field

Posted: Tue Feb 05, 2013 10:25 pm
by Yarden Gur

on the event selection, should I choose the input option?


option value in select field

Posted: Tue Feb 05, 2013 10:26 pm
by Michael4771079

Sorry Yarden,
I didn't mean to hijack your post.


option value in select field

Posted: Tue Feb 05, 2013 10:28 pm
by Yarden Gur

No need to be sorry, feel free ;)


option value in select field

Posted: Tue Feb 05, 2013 10:29 pm
by Michael4771079

Hi Yarden
Load