Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

How to include an email in a drop downlist?

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.

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

How to include an email in a drop downlist?

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.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

How to include an email in a drop downlist?

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to include an email in a drop downlist?

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

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

How to include an email in a drop downlist?

Perfect! Thanks!

Return to “Issues”