Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Dec 16, 2017 Dec 16, 2017

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.

TOPICS
Acrobat SDK and JavaScript , Windows
355
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Dec 17, 2017 Dec 17, 2017

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

Capture d’écran 2017-12-17 à 17.46.18.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 17, 2017 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2017 Dec 17, 2017
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

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