Joe Coney
Posts: 0
Joined: Sat Mar 22, 2014 12:27 pm

Appery.{service_name}.execute() not working

Hi,

I'm looking for users to be able to submit their email addresses but I want to validate it before they submit it to a database.

Here is the Javascript code I'm trying to do when the submit button is pressed but for some reason it doesn't look like it's working:

function validateEmail() {
var x = Appery("mobiletextinput_18");

Code: Select all

 if (IsEmail(x)) 

{
alert("Not a valid e-mail address");
}
else{
Appery.send_email.execute(x);
Appery.navigateTo('thanks', {});
}
}

Where send_email is the standard database service that the docs suggest we create.

send_email works on its own without the js but Im struggling to get the javascript to execute it.

Any help would be great - thanks!!

Return to “Issues”