Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum. |
Alert user if two text fields don't match |
Post Reply ![]() |
Author | |
smashek ![]() New Member ![]() ![]() Joined: 20 Oct 2016 Points: 1 |
![]() ![]() ![]() ![]() Posted: 20 Oct 2016 at 5:24pm |
Hello!
I need a script that compares the text entered in fieldB to that in fieldA. If the text in fieldB doesn't exactly match that of fieldA, an alert should pop up notifying the user of the discrepancy. Does anyone know of a script that accomplishes that?
|
|
![]() |
|
Sponsored Links | |
![]() |
|
try67 ![]() Senior Member ![]() Joined: 15 Jul 2011 Points: 628 |
![]() ![]() ![]() ![]() |
Use this code as the custom validation script of fieldB:
if (event.value!=this.getField("fieldA").valueAsString) app.alert("The values don't match!"); |
|
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |