Page 3 of 5

sendgrid adding input fields

Posted: Thu Aug 09, 2012 5:29 pm
by maxkatz

It should be working now. On button click, a new local storage variable is created. Then for 'text' mapping, we get the name from local storage.


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:04 pm
by Michael4771079

Hi Max,
thank you works now,
can I ask you, I did have ''name'' in local storage, but your addition had ''_name''


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:06 pm
by maxkatz

You were not saving the name, when the button was clicked.


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:22 pm
by Michael4771079

sorry Max,
I don't follow, ''name'' was saved in properties, in parameters and local storage, but if you look at mapping your ''_name'' is different to my ''name''


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:27 pm
by maxkatz

The name should be saved in local storage.


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:42 pm
by Michael4771079

I don't know how to do that,
I saved it it all the places I assumed where necessary, please explain.

on a more amusing note did you study dentistry!


sendgrid adding input fields

Posted: Thu Aug 09, 2012 7:46 pm
by maxkatz

Click button and see its events. That's where the name is saved.

Dentistry - nope :)


sendgrid adding input fields

Posted: Thu Aug 09, 2012 8:17 pm
by Michael4771079

Max,
it works on name, added new input ''mobile'' I have set it up the same as name, but I am missing something


sendgrid adding input fields

Posted: Thu Aug 09, 2012 8:36 pm
by maxkatz

It's similar steps for any other field you want to display in email body:

  • On button click, save the value into local storage
  • In email body mapping, read the value from local storage and append it to the body.

sendgrid adding input fields

Posted: Thu Aug 09, 2012 9:00 pm
by Michael4771079

Max
I have copied the setting for ''name'' including local storage, mapping and click button and applied to ''mobile'' imput, but no result