Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

I want to send a form via email. I have SendGrid set up and all the fields going into the relevant request parameters, however when the email is sent, it still only sends the default fields (Message, Subject, To and From). How do I map the other fields so that they display when the email is sent? Thanks.

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

Send form via SendGrid (Not just default values)

Hi Nathan,

Please see SendGrid API here:
https://sendgrid.com/docs/API_Referen...

If you need to send data from several fields then generate an email body from needed data and send it.

Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

Thanks for this.

Also if I wanted to combine two fields to make one before the email is sent, would this be possible on your platform?

For instance, a Firstname and a Surname field combining to make a full name field.

Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

More specifically it is for a report a repair form, the fields are:

First Name
Surname

Repair Type
Repair Details
Photo of Repair (if possible)

First line of Address
Postcode

Up to date telephone number
Email Address

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Send form via SendGrid (Not just default values)

Hello Nathan,

You can combine any number of fields with any static text. You should use js code in the mapping for this. You may read more here http://devcenter.appery.io/documentat...

Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

Thanks again.

Another question... :)

After following this tutorial:

http://devcenter.appery.io/documentat...

I was wondering if their was a way to do the 'Set to local storage' from a 'textarea' input, through JSCode.

Thanks

ps i may just be being dense, and it may be on that tutorial :s

Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

This is what I have so far:

localStorage.setItem('firstname',"bob");
var a = localStorage.getItem('firstname');
Appery("dud").text (a);

Which sets the local storage 'firstname' to "bob". Then calls the first name from local storage and then changes a label ('dud') to say "bob". However I have a field called fname, where a user can enter in their firstname and I want that to be stored in the local storage. I have tried:

localStorage.setItem('firstname', Appery(fname));

and

localStorage.setItem('firstname', Appery('fname'));

But neither work, what is the correct syntax? (If it is possible. Thanks :))

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Send form via SendGrid (Not just default values)

Hello Nathan,

Could you please try this code:
prelocalStorage.setItem('firstname', Appery('fname').val());/pre

Nathan Ford
Posts: 0
Joined: Mon Jul 21, 2014 9:56 am

Send form via SendGrid (Not just default values)

I got it working now, but thanks for your repsonse :)

Return to “Issues”