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

sendgrid adding input fields

Hi,
I am trying to add fields to the sendgrid plugin, and receive the info that the end user inputs in the email, any pointers would be a great help

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

sendgrid adding input fields

You can edit the plug-in services as any other service. What exactly did you try?

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

sendgrid adding input fields

Hi Max,
i need to add input fields for a few items that need to end up in the email message, for e.g. Name, Mobile, Time, Pickup Point, Destination etc, but in the mapping there is only one message parameter

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

sendgrid adding input fields

You could store the data into local storage and then get them in the mapping JavaScript.

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

sendgrid adding input fields

do you mean map local storage to message, or do I need a string for each input to be added in the mapping for each item

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

sendgrid adding input fields

I meant something like this:

var name = localStorage.getItem(''name");
var mobile = localStorage.getItem(''mobile");
var pickup = localStorage.getItem(''pickup");
...

return name + mobile + pickup;

and pass this to the service in mapping.

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

sendgrid adding input fields

cheers Max,
I'll try that

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

sendgrid adding input fields

Hi Max,
I set this up as suggested but i cannot get it to work, hers what I did

I set a new app with sendgrid plugin, I then place an input and called it ''name'', I then set local storage on click and added ''name'' to the parameters in sendgrid settings, and then added the string, email is sent but the name is not included in the email, I've done something silly. Hers the link
http://project.tiggzi.com/mobile-fram...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

sendgrid adding input fields

How do you save the "name" value into local storage?

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

sendgrid adding input fields

in events, ''click'', add action ''set local storage variable'' variable name ''name'' bind to component ticked, property name ''text''

Return to “Issues”