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

Want Blue as Text Display Color

Explorer ,
Apr 29, 2017 Apr 29, 2017

What would I make the "Current File:" text blue (I made the text blue below to show exactly what verbiage I want to show up blue in form) in the following code?

var exInit ={"LTyp":typeInit,"tFPg": this.strStrtPg,"tTPg":this.strEndPg, "sOfN":"of (" + this.nNumPages+")",

                                "FlNm":"***CURRENT FILE***: " + this.strFileName};

Right now it shows up as black.  See below:

I am using Adobe Acrobat Pro X 10.1.16 on Windows 7.

TOPICS
Acrobat SDK and JavaScript
257
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 ,
Apr 29, 2017 Apr 29, 2017

If this is for a custom dialog, it's not possible.

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 ,
Apr 30, 2017 Apr 30, 2017
LATEST

For the custom dialog, use a type of "link_text" for the text you want to be in blue. It'll get underlined as well. If you want text in the middle of a line to be blue and the surrounding text to be black, you'll need to create a view with the align_children property set to "align_row" with three elements. The first is "static_text", the second is "link_text", and the third would be "static_text" again.

The link will only behave as a link if you add the appropriate code but it will be blue even if you don't.

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