since ‎16-12-2018
‎10-12-2019
kartikeyavyas
Level 2
Re: Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Amit_Kumar​ Could you please share your thoughts ?

Views

493

Likes

0

Replies

0
Re: Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Hi,I've an update on my query. Instead of customer Id the attribute that needs to be passed is password. I'm passing hardcoded value (OTP = '111'). function verifyOTP(e) { if ($('#OTP').value != '12345' ) { e.preventDefault(); return false; } }$('form').submit(verifyOTP); $('button').click(verifyOTP); It is showing the following error.Any suggestion on what I'm doing wrong here.Thanks,Kartikeya

Views

6.2K

Likes

0

Replies

1
Re: Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Thanks. It is now working.I have another query.I want to pass one of the attributes, let's say CustomerId = 111. The form should redirect to next page, if CustomerId entered is equal to "111". And if not It should throw "Invalid CustomerId" error.I'm using the below code. if (CustomerId == "" || CustomerId!= 111) { alert("Enter Valid Customer ID"); // CustomerId.focus(); return false; } When I'm passing the empty values, it is working fine. And If I enter any other value (be it "100" or "101"), ...

Views

6.2K

Likes

0

Replies

3
Re: Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
No. There is nothing in Properties > document.

Views

6.2K

Likes

0

Replies

5
Re: Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Hi Jon,Here's the source code.body { font-family: Arial, Helvetica, sans-serif;}* { box-sizing: border-box;}/* Add padding to containers */.container { padding: 16px; background-color: white;}footer{background-color: black;color: white;height:100px;padding: 5px;text-align: center;}/* Full-width input fields */input[type=text], input[type=password] { width: 100%; padding: 15px; margin: 5px 0 22px 0; display: inline-block; border: none; background: #f1f1f1;}input[type=text]:focus, input[type=password]:focus { background-color: #ddd; outline: none;}/* Overwrite default styles of hr */hr { border: 1px solid #f1f1f1; margin-bottom: 25px;}/* Set a style for the submit button */.registerbtn { background-color: #4CAF50; color: white; padding: 16px 20px; margin: 8px 0; border: none; cursor: pointer; width: 100%; opacity: 0.9;}.registerbtn:hover { opacity: 1;}/* Add a blue text color to links */a { color: dodgerblue;}/* Set a grey background color and center the text of the "sign in" section */.signin { background-color: #f1f1f1; text-align: center;}#otpDiv{display:none} function showverifyotp() { document.getElementById("otpDiv").style.display = "block"; }var storage_local; function otpValidate() { var CustomerId = document.getElementById("CustomerId").value; var DOB = document.getElementById("DOB").value; var Email= document.getElementById("Email").value; if (CustomerId == "") { alert("Enter Customer ID"); // CustomerId.focus(); return false; } else { if (DOB == "") { alert("Enter DOB"); // DOB.focus(); return false; } else { if (Email== "") { alert("Enter the Email"); //email.focus(); return false; } } }} WEB - APIPlease fill in this form to get OTP.CustomerID Date Of Birth Email SubmitThanks,Kartikeya

Views

6.2K

Likes

0

Replies

7
Web Application - Web Form Validation in Campaign Classic
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Hi,I have a Web form build with Adobe Campaign Web Application.Page: Web Form (having 3 fields: customer_id, dob, email)Page1: Where the customer will enter the password. Page2: Personalized home page.Page Activity has a web form having fields which are mandatory. (Fields must be filled/random value will work also).As soon as I make the fields mandatory (check mandatory box to "Yes"). It throws the following error:And if I check the mandatory box to "No". And the fields are empty, it's been redi...

Views

6.8K

Likes

2

Replies

10
OTP Verification in Adobe Campaign using Web Forms
Avatar

kartikeyavyas

kartikeyavyas
- Adobe Campaign Classic
Hi All,I have a requirement to integrate SMS OTP verification method from Adobe Campaign for authentication using API calls on web forms.I have to validate the User Information. On successful validation, OTP verification will be done on the next web page. On success he/she will be redirected to personalized home page.Can anyone suggest how we can do the same?Thanks and Regards,Kartikeya Vyas

Views

360

Like

1

Replies

0
Likes given to
Likes from