Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Alert user if two text fields don't match
  FAQ FAQ  Forum Search   Register Register  Login Login


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 Post Reply
Author
smashek View Drop Down
New Member
New Member
Avatar

Joined: 20 Oct 2016
Points: 1
Post Options Post Options   Quote smashek Quote  Post ReplyReply Direct Link To This Post Topic: Alert user if two text fields don't match
    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?
Back to Top
Sponsored Links


Back to Top
try67 View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 608
Post Options Post Options   Quote try67 Quote  Post ReplyReply Direct Link To This Post Posted: 28 Oct 2016 at 7:56am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.09
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.032 seconds.