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.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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.
Hi,
You can add options to Select using following JavaScript code on page Load:
codevar newOption1 = '<option value="1">1</option>',
newOption2 = '<option value="123">123</option>';
Tiggzi("mobileselectmenuName").append(newOption1).append(newOption2).selectmenu('refresh');/code
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
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?
Hi Michael,
Yes, this is the fix.
It will work with e-mail.
Thanks Katya,
do I use the code as is and just change component name?
or does the code differ for @ or _ and numbers
on the event selection, should I choose the input option?
Sorry Yarden,
I didn't mean to hijack your post.
No need to be sorry, feel free ![]()
Hi Yarden
Load