Input form validation in Adobe Campaign

Avatar

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile
pradyumns539618
Level 2

01-03-2018

Hi ,

I want to validate Input form if it's not matched with required data type ,throw the alert whenever user enter wrong data type value for ex: If the input filed of phone is integer(long) , it should accept only integer value .

Can anyone help me out here . Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
daniell35335226
Level 2

Likes

4 likes

Total Posts

25 posts

Correct reply

6 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
daniell35335226
Level 2

Likes

4 likes

Total Posts

25 posts

Correct reply

6 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
daniell35335226
Level 2

07-03-2018

Hi,

You can do something like this :

                          <leave>

                                <check expr="@Phone)!=''">

                               <error>Your phone number is blank!</error>

                                </check>

                                <check expr="@Phone)!=''">

                                  <error>Your phone number is blank!</error>

                                </check>

                                <check expr="@Phone)!=''">

                                  <error>Your phone number is blank!</error>

                                </check>

                              </leave>

Hope that helps?

Dan

Answers (7)

Answers (7)

Avatar

Avatar
Validate 1
Level 1
jyotiyadav3
Level 1

Likes

4 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
jyotiyadav3
Level 1

Likes

4 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
jyotiyadav3
Level 1

04-03-2018

Hi,

You can use javascript element in the form and show alert whenever datatype is wrongly entered.

Eg; for integer you can use:

var x=document.getElementById("xyz");

if( x!=(int)x){

alert("Please enter numeric value");

}

You will be able to get the Element name when you load form in the browser, press F12 and inspect that element id.

Thanks,

Jyoti

Avatar

Avatar
Validate 1
MVP
bobbyjss
MVP

Likes

77 likes

Total Posts

108 posts

Correct reply

14 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 25
Give Back 10
View profile

Avatar
Validate 1
MVP
bobbyjss
MVP

Likes

77 likes

Total Posts

108 posts

Correct reply

14 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 25
Give Back 10
View profile
bobbyjss
MVP

25-07-2019

Unfortunately not Mike.

The landing pages are unable to validate against the profile schema. We have a problem with his as we're unable to identify if a profile already exists when someone fills in our subscription form because we're unable to validate against the email address.

It would make my life significantly easier if you could!

Avatar

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

01-03-2018

You can make use of event based checks on input forms to validate it

Please refer to Form structure link and read more about it.

Avatar

Avatar
Boost 5
Level 2
michaeld2087442
Level 2

Likes

6 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
michaeld2087442
Level 2

Likes

6 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
michaeld2087442
Level 2

23-07-2019

Hi guys,

It is possible to validate the input text before update the data details?

here's the scenario i want to implement.

i want to send a web form to members and before they change there details they need to input first there account number and if the account number is correct next page will show up, but if the account no is  not correct alert message will show up.

can you please help me for these?

regards,

Mike

Avatar

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile
pradyumns539618
Level 2

08-03-2018

Hi ,

yes , it works.

Thanks!!

Avatar

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back
Level 2
pradyumns539618
Level 2

Likes

10 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile
pradyumns539618
Level 2

07-03-2018

Hi Daniell,

Thanks for response !!

above syntax works only one field at a time , what if i have to validate multiple fields in the form?

any suggestion !

Thanks!

Avatar

Avatar
Boost 3
Level 2
daniell35335226
Level 2

Likes

4 likes

Total Posts

25 posts

Correct reply

6 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
daniell35335226
Level 2

Likes

4 likes

Total Posts

25 posts

Correct reply

6 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
daniell35335226
Level 2

02-03-2018

Here is an example :

  <leave>

       <check expr="@Phone)!=''">

      <error>Your phone number is blank!</error>

    </check>

  </leave>