Expand my Community achievements bar.

SOLVED

Bold a part of text of a messageBox

Avatar

Level 7

How I can BOLD the words(DOES NOT MEET EXPECTATIONS) from the script below?

xfa.host.messageBox("DOES NOT MEET EXPECTATIONS - Performance level......"

,"PERFORMANCE FORM",3);

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

you're right, the links are down.

I upped it here again

https://acrobat.com/#d=H3FSy2GQyI*-du1FKSirrw

View solution in original post

9 Replies

Avatar

Former Community Member

As far as I know the message box does not support a Rick Text Format so I do not think you can do that.

Paul

Avatar

Level 10

You have a bit more control using the execDialog method, I've not been able to get things position how I want and it does have a "Warning JavaScript Window" message at the bottom, still it might suit you.

var dialog1 = { description: { align_children: "align_row", width : 500, elements:[{ type: "static_text", name: "DOES NOT MEET EXPECTATIONS", bold: true, font: "dialog"   },   {   type: "static_text", name: " Performance level.....",   },   { type: "ok",   } ] } }; app.execDialog(dialog1);

Avatar

Level 10

Another method is to add an image to the dialogs.

This can be done with the Acrobat Dialog Image Generator (ADIG).

http://blogs.adobe.com/acdc/2008/05/using_image_in_acrobat_javascr.html

Avatar

Level 7

Hi Radzmar,

Do you have the sample of the link to provide to me because the sample file from the link can not be found!

Thanks for your reply

Avatar

Correct answer by
Level 10

Hi,

you're right, the links are down.

I upped it here again

https://acrobat.com/#d=H3FSy2GQyI*-du1FKSirrw

Avatar

Level 2

Hello,

I realize this thread is old, but the links to the adig.jar utility are gone.  Any chance they could be uploaded again?

Thanks.

Avatar

Level 10

Hi,

the sample is still available, only the link has changed.

https://acrobat.com/?d=H3FSy2GQyI*-du1FKSirrw

Alternatively you can use a tool from Bruce, to create illustrated dialogs.

http://adobelivecycledesignercookbookbybr001.blogspot.de/2013/10/using-appexecdialog-in-adobe-design...

Avatar

Level 2

Thank you.  It works great! 

I am having one problem.  In the "Javascript for Acrobat API Reference" document, version 8.1,

I am looking at the execDialog API and it mentions that I can change the titlebar by putting a name after the description of the dialog.

This does not seem to work in Adobe Livecycle Designer for Adobe 9+  Has this functionality been deprecated since version 8.1 of the document?

I also have one other question, is there a way to get rid of the red "Warning: JavaScript Window" message that shows up on the bottom of the dialog?

Thanks.

Avatar

Level 10

The JavaScript Warning title can only be suppressed by executing the script from a trusted environment.

See this threat.

http://forums.adobe.com/message/3714841#3714841