Help adding app alert for character limit

New Here ,
Apr 17, 2018

Copy link to clipboard

Copied

Good Afternoon,

I am working on making permit applications into fillable PDFs. My last hang up is our description dialog box. I have added a character limit to the box but would like  away to inform people they reached the character limit. Is there a way to create an app.alert for this or another type of notification?

Any input or help pointing me in the right direction would be greatly appreciated!

Thank you!

Paige

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Use this code as the field's custom Keystroke event:

if (event.fieldFull) app.alert("The field is full!");

TOPICS
Acrobat SDK and JavaScript

Views

73

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Help adding app alert for character limit

New Here ,
Apr 17, 2018

Copy link to clipboard

Copied

Good Afternoon,

I am working on making permit applications into fillable PDFs. My last hang up is our description dialog box. I have added a character limit to the box but would like  away to inform people they reached the character limit. Is there a way to create an app.alert for this or another type of notification?

Any input or help pointing me in the right direction would be greatly appreciated!

Thank you!

Paige

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Use this code as the field's custom Keystroke event:

if (event.fieldFull) app.alert("The field is full!");

TOPICS
Acrobat SDK and JavaScript

Views

74

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 17, 2018 0
Most Valuable Participant ,
Apr 17, 2018

Copy link to clipboard

Copied

Use this code as the field's custom Keystroke event:

if (event.fieldFull) app.alert("The field is full!");

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 17, 2018 0
New Here ,
Apr 17, 2018

Copy link to clipboard

Copied

That worked! Thank you so much for once again being so helpful and making the answer so easy!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 17, 2018 0