Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

shriniwast83397
shriniwast83397
Offline

Badges

Badges
4

Accepted Solutions

Accepted Solutions
0

Likes

Likes
1

Posts

Posts
4

Discussions

Discussions
0

Questions

Questions
4

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by shriniwast83397
Customize the badges you want to showcase on your profile
Re: Webapp attribute validation - Adobe Campaign Standard 17-08-2018
Awesome it's working well Thanks

Views

1.3K

Likes

0

Replies

0
Re: Webapp attribute validation - Adobe Campaign Standard 17-08-2018
Hi Jean,Thanks for your reply.I am now able to call that function using onclick event in submit element. it is validating the field but it doesn't stop there and inserts the invalid values in the schema. I have the storage activity connected after the page. Not sure if I am missing any further stepsIt validate the field but when I click on ok of the alert pop up, it takes me the end and inserts the records in schemaThanks,Shriniwas

Views

1.2K

Likes

0

Replies

0
Re: Webapp attribute validation - Adobe Campaign Standard 17-08-2018
I am able to call my check function in body element and Form but not in input type = submit element. It is not calling that function in submit element.Get User Details// <![CDATA[function myFunction() { var inputText = document.forms["myForm"]["fname"].value; var inputMob = document.forms["myForm"]["mobile"].value; var inputEmail = document.forms["myForm"]["email"].value; if (inputText == "") { alert("Name must be filled out"); return false; } if (!/^[a-zA-Z]*$/g.test(inputText)){ alert("Name has inavlid characters"); return false; } if (inputMob == "") { alert("Enter a mobile"); return false; } if (!/^[0-9]{10}$/.test(inputMob )) { alert("Invalid Mobile"); return false; } if (inputEmail == "") { alert("Enter the email"); return false; } if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(inputEmail)) { alert("Invalid Email address"); return false; } }// ]]>First Name Mobile Email

Views

1.2K

Likes

0

Replies

0
Webapp attribute validation - Adobe Campaign Standard 12-08-2018
I am trying to use the below validation script for a webapp to validate below three attributes and then insert in Campaign Schema using storage activity, however it is validating the field but it still inserts the data if validation fails. Any suggestion on the below ?Get User Details// <![CDATA[function myFunction() { var inputText = document.forms["myForm"]["fname"].value; var inputMob = document.forms["myForm"]["mobile"].value; var inputEmail = document.forms["myForm"]["email"].value; if (inputText == "") { alert("Name must be filled out"); return false; } if (!/^[a-zA-Z]*$/g.test(inputText)){ alert("Name has inavlid characters"); return false; } if (inputMob == "") { alert("Enter a mobile"); return false; } if (!/^[0-9]{10}$/.test(inputMob )) { alert("Invalid Mobile"); return false; } if (inputEmail == "") { alert("Enter the email"); return false; } if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(inputEmail)) { alert("Invalid Email address"); return false; } }// ]]>First Name Mobile Email

Views

2.1K

Like

1

Replies

6
Likes given to
Likes from