Skip to main content
Nsmjc
Participant
December 17, 2017
Question

I ham using a combo Box is their a way to conditional format the back based off the selection

  • December 17, 2017
  • 2 replies
  • 386 views

I am using a combo box a shift scheduling layout

is there a way to have the value displayed with just a letter after the selection is made

For example, the Combo Box options are Sick, Vacation, Comp time, Bereavement, Military, and so forth

So if the selected item is Bereavement can it display B or vacation a V ect.

Space is limited, so just an initial would be sufficient  I have explained to the bosses that we can just use the initials, to begin with, but they don't believe an individual would remember that S stood for Sick Leave and a C stood for Comp time

Any help would be greatly appreciated.

This topic has been closed for replies.

2 replies

Inspiring
December 17, 2017

When I need to do something like this, I use a pop-up menu instead, along with a text field. You can use a button, either visible and placed next to the text field, or invisible and placed in the same location as the text field, to trigger the app.popUpMenuEx (or app.popUpMenu) script, which populates the text field with the letter corresponding to the selected item. Post again if you'd like help with the script.

Thom Parker
Community Expert
Community Expert
December 17, 2017

Here's more info on Acrobat UI devices, including the popup menu George mentions, which is an excellent way to go:

Alerts, Popups, and Other Devices for Interacting with the User

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Loic.Aigon
Legend
December 17, 2017

Out of Javascript, couldn't a description bring the valuable information ?