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

Change the text in the popup box?

Community Beginner ,
Mar 16, 2016 Mar 16, 2016

What's the best / easiest way to change the text in a popup box? I've got a click box interaction to execute Javascript with an alert box, but the title of it is "Adobe Captivate". I know that a regular Javascript alert box title cannot be changed, but I'm wondering if, because it's styled, there is a strain I can tweak. I appreciate any help!

dialogue box.png

TOPICS
Advanced
1.9K
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

correct answers 1 Correct answer

People's Champ , Mar 16, 2016 Mar 16, 2016

Execute this JavaScript:

cp.alert("message", "title")

Translate
Community Expert ,
Mar 16, 2016 Mar 16, 2016

You can style it using the Object style for Runtime Dialog in the Object Style manager, but a JS-expert should pop in to have the title of the message box changed. For  a popup box I don't use JS.

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 ,
Mar 16, 2016 Mar 16, 2016

Execute this JavaScript:

cp.alert("message", "title")

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 Beginner ,
Mar 16, 2016 Mar 16, 2016

This is awesome, thanks so much! I hate to use this thread as a Javascript how-to,  but any easy way to either up the font size and/or fix the word wrapping?

2016-03-16_09-25-47.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
People's Champ ,
Mar 16, 2016 Mar 16, 2016

Not sure. I think you would be better off using Sweetalert.

SweetAlert

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
Participant ,
Dec 05, 2018 Dec 05, 2018
LATEST

any tips on how to use SweetAlert to show a popup on click of a btn?

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
Resources
Help resources