Page 1 of 1

How to include an email in a drop downlist?

Posted: Tue Oct 21, 2014 7:11 pm
by Mike6979865

Hi,

Why can't I add as a value an email address in a dropdown list. I want to select an email from a dropdown list, save the email address in local storage, and then use Sendgrid to email to that specific email address.


How to include an email in a drop downlist?

Posted: Tue Oct 21, 2014 8:39 pm
by Kateryna Grynko

Hi Mike,

Please try this code: preAppery('mobileselectmenuname').append('' + emailVariable + '').selectmenu('refresh');/pre
Where mobileselectmenuname is your Select component name,
emailVariable is a variable containing email.


How to include an email in a drop downlist?

Posted: Tue Oct 21, 2014 9:46 pm
by Mike6979865

However, I'm not able to list the email addresses in the select menu.

Image

I need to list multiple email address in the Selector component.


How to include an email in a drop downlist?

Posted: Wed Oct 22, 2014 12:27 am
by Yurii Orishchuk

Hi Mike,

Value is HTML(XML) attribute.

Thus it should have value in accordance to xml attribute requirements.

So you should escape wrong characters:

See detailed escaping table here:
http://www.theukwebdesigncompany.com/...

For you case you need this escaping:

pre

@ = @

/pre

So your value attribute should be like this:

pre

a@a.com = a@a.com
/pre

Details: http://prntscr.com/4yhip8/direct

Please use HTML escaping


How to include an email in a drop downlist?

Posted: Wed Oct 22, 2014 3:03 pm
by Mike6979865

Perfect! Thanks!