Yarden Gur
Posts: 0
Joined: Sat Feb 02, 2013 3:26 pm

option value in select field

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

option value in select field

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

option value in select field

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

Yarden Gur
Posts: 0
Joined: Sat Feb 02, 2013 3:26 pm

option value in select field

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

option value in select field

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

option value in select field

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

Yarden Gur
Posts: 0
Joined: Sat Feb 02, 2013 3:26 pm

option value in select field

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

option value in select field

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

Yarden Gur
Posts: 0
Joined: Sat Feb 02, 2013 3:26 pm

option value in select field

No need to be sorry, feel free ;)

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

option value in select field

Hi Yarden
Load

Return to “Issues”