Disable the "Results Posted Successful" box after reporting to internal server.

Community Beginner ,
Sep 09, 2016 Sep 09, 2016

Copy link to clipboard

Copied

I have found out how to mute the dialog asking for name and email id, but how can I disable the box:

Capture.PNG

Or change the words / title? but disable would be preferable.

Thanks

-James

Views

534

Likes

translate

Translate

Translate

Report

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

Adobe Community Professional , Sep 13, 2016 Sep 13, 2016
Put the script:cp.model.data.rtDialog.rtWarningTitle = "Message Box Title";            Just above the  constructDIVs(); function.Since you are editing the JSON you need to do it before Captivate creates the elements in the DOM.I have this in all of my projects.

Likes

translate

Translate

Translate
Adobe Community Professional ,
Sep 10, 2016 Sep 10, 2016

Copy link to clipboard

Copied

I believe the text of the message is located in this file:

C:\Program Files\Adobe\Adobe Captivate X x64\en_US\strings.txt

You can change the title for html5 if you insert this line in the index.html just above the lines in bold:

cp.model.data.rtDialog.rtWarningTitle = "Message Box Title";            

lJSLoaded = true;

constructDIVs();

Likes

translate

Translate

Translate

Report

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 ,
Sep 11, 2016 Sep 11, 2016

Copy link to clipboard

Copied

Do you know if there is any way I can have it update the index.html as I render the project (I have ove 100 projects and I would like to avoid having to edit the index.html for each of them.

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 11, 2016 Sep 11, 2016

Copy link to clipboard

Copied

You can put the code in the html template file located here:

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html

Likes

translate

Translate

Translate

Report

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 ,
Sep 12, 2016 Sep 12, 2016

Copy link to clipboard

Copied

I am sorry I tried to make the change in strings.txt, and index.html, and there is no

lJSLoaded = true;

constructDIVs();

located in index.html

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 12, 2016 Sep 12, 2016

Copy link to clipboard

Copied

Sorry, I don't have access to CP9 right now, only 8. I check later today

Likes

translate

Translate

Translate

Report

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 ,
Sep 12, 2016 Sep 12, 2016

Copy link to clipboard

Copied

Thanks, FYI it ends up getting generated in CPM.js with the project.  In 3 places... different messge boxes.  if I do a simple find and replace it works, but I would think it could be easier.,   If I find out more I'll let you know.

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 12, 2016 Sep 12, 2016

Copy link to clipboard

Copied

It could be that it only gets put in if you are using the internal server option. I didn't see anything in my CPM.js.

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 13, 2016 Sep 13, 2016

Copy link to clipboard

Copied

I've checked the CP9 html file and those lines are there in mine. You don't even have the constructDIVs(); function?

Likes

translate

Translate

Translate

Report

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 ,
Sep 13, 2016 Sep 13, 2016

Copy link to clipboard

Copied

These are where they appear (not exactly like you described, and also I thinkI had the wrong object property...).

window.addEventListener("load",function()

  {

  setTimeout(function()

  {

  var script = document.createElement('script');

  script.type = 'text/javascript';

  script.src = 'assets/js/CPXHRLoader.js';

  script.defer = 'defer';

  script.onload = function()

  {

  var lCSSLoaded = false;

  var lJSLoaded = false;

  function constructDIVs()

  {

  if(lCSSLoaded && lJSLoaded)

  {

  initializeCP();

  }

  }

  cpXHRJSLoader.css('assets/css/CPLibraryAll.css',function() {

  lCSSLoaded = true;

  constructDIVs();

  });

  var lJSFiles = [  'assets/js/jquery-1.11.3.min.js','assets/js/CPM.js','assets/playbar/playbarScript.js' ];

  cpXHRJSLoader.js(lJSFiles,function()

  {

  //console.log("js loaded");

  var imagesJSONFiles = [ 'dr/imgmd.json' ];

  cpXHRJSLoader.loadImagesJSON(imagesJSONFiles,function(imageToJSONPathMap){

  cp.imageToJSONPathMap = imageToJSONPathMap;

  var imageJSONFiles = [ 'dr/img1.json' ];

  if(window.location.protocol.substr(0,4) == "file")

  cpXHRJSLoader.preloadURLs(imageJSONFiles, constructDIVs);

  lJSLoaded = true;

  if(window.location.protocol.substr(0,4) != "file" || !imageJSONFiles.length)

  constructDIVs();

  });

  });

  }

  document.getElementsByTagName('head')[0].appendChild(script);

  },1);

  },false);

BTW thanks for all your help

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Sep 13, 2016 Sep 13, 2016

Copy link to clipboard

Copied

Put the script:

cp.model.data.rtDialog.rtWarningTitle = "Message Box Title";           

Just above the  constructDIVs(); function.

Since you are editing the JSON you need to do it before Captivate creates the elements in the DOM.

I have this in all of my projects.

Likes

translate

Translate

Translate

Report

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
New Here ,
Dec 13, 2016 Dec 13, 2016

Copy link to clipboard

Copied

I am unsure where to add cp.model.data.rtDialog.rtWarningTitle = "Message Box Title";

Thanks

Likes

translate

Translate

Translate

Report

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
New Here ,
Jan 24, 2021 Jan 24, 2021

Copy link to clipboard

Copied

Any way to delete this on the latest version? Struggling to find a way or any help

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Jan 25, 2021 Jan 25, 2021

Copy link to clipboard

Copied

Problem is that even if you hide it, it's still waiting for you to click one of the buttons.

Likes

translate

Translate

Translate

Report

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
New Here ,
Jan 25, 2021 Jan 25, 2021

Copy link to clipboard

Copied

As in on the review page? That wouldn't be an issue if the user clicked on continue.

Or are you referring to a different button?

Is there a way to hide it at all?

Likes

translate

Translate

Translate

Report

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