Page 1 of 1

HTML5 FORM VALIDATION with page grab and DB

Posted: Wed Mar 25, 2015 10:20 am
by MoW

*Business Name :
*Type of Business :
*Business Phone :
*Business Email :
*Business Address :
Apt, Suite, Bldg. :
*City :

  • State or Province :
    *Region Postal Zip Code :
    *Country :
    *Contact Person :
    *Contact Phone :
    *Contact Email :
    *Short Business Description :
    Business Website :
    Business FaceBook :
    Business Twitter :
    Other Social :
    Hours :
    Notes or Message :

  • Donation Information **:

    **Your Donation can be a % of total sale or a dollar amount for each sale, i.e. 5% of sale or $10 per sale. Please consult a Save the Schools associate for more information.

    ENTER



HTML5 FORM VALIDATION with page grab and DB

Posted: Wed Mar 25, 2015 9:12 pm
by Egor Kotov6832188

Hello,

To validate your form you should for each field make if case or read values to variable and then in one if statement check value
Next line shows how to read a value from input
var myComponent = Apperyio("MY_COMPONENT_NAME").val();

where "MY_COMPONENT_NAME" - is exact name of component on the page.

you can then check it with next snippet:
if (myComponent){
myServiceName.execute();
}

where "myServiceName" - exact name of service on the page, not the original name of service.