Skip to main content
Participating Frequently
December 18, 2020
Question

How to make custom icon for the calendar in Acrobat pro dc?

  • December 18, 2020
  • 6 replies
  • 1145 views

Hi, Is there a way to connect the "pop-up" of the calendar (where you chose the date) to a custom button/icon (like, next to it) so that with one click bring up the little date window. And not have to press the grey button to the right of the text field, wich requires two clicks.

My goal is to have a line, and a calendar icon to the right, and pressing it once will pop-up the date window to select a date, wich will remain on the line. See image

There must be a javascript ?

Thanks/ Joakim

This topic has been closed for replies.

6 replies

Participating Frequently
January 7, 2021

Thank you all for the help and tips, I will try when I get home.

ls_rbls
Community Expert
Community Expert
December 19, 2020

See also the pop up calendar tutorial by ACP Thom Parker: 

 

Nesa Nurani
Community Expert
Community Expert
December 19, 2020

There are some tricks you can do to easy the process.
1. If users need to select only current date you can use script in button MouseUp event
so on button click it will populate date field with current date,
if needed change date field name and date format:

this.getField("Date").value = util.printd("mm/dd/yyyy", new Date());

2. To remove need for 2 clicks you can make it so user only need to click once, on button with calendar icon  set code on MouseEnter

this.getField("Date").setFocus();

when user mouse hover above calendar icon it will set focus on date field and grey icon will pop so then only need 1 click
on grey icon to pop calendar.

JR Boulay
Community Expert
Community Expert
December 19, 2020
Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
December 19, 2020

You can't connect the build-in calendar.

ls_rbls
Community Expert
Community Expert
December 19, 2020

++Edited reply  ,  posted my reply to the wrong topic