Skip to main content
Participating Frequently
November 22, 2010
Question

Is it possible to dynamically replace text in the WebHelp output?

  • November 22, 2010
  • 1 reply
  • 639 views

RoboHelp HTML Version 8

I am currently implementing a WebHelp solution for a web application. I would like to use a variable to tailor information to specific customers. Is it possible to do so without having to generate multiple outputs? In other words, is there some way to replace text when WebHelp is displayed to an end-user?

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
November 23, 2010

Hi,

As allways, you can do it with JavaScript, but you (probably) don't want to go that way. Using scripting take a lot of setting up, a lot of maintaining and may be very difficult for other authors.You need to have some way to determine what text you want to show and you need a script to change all the occurances of a viewed page. If you also want to use those variables in the TOC, you'll need to add you're own script to the WebHelp scripts.

From a usability perspective: use variables

Greet,

Willam

JoeECAuthor
Participating Frequently
November 23, 2010

Hi William,

Thank you for your reply. However, I'm still a little confused by your last sentence. Are you saying that there is a way to configure variables so that they persist in the WebHelp output? If so, can you provide a little more information as to how to accomplish that?

P.S. My limited experience with variables seems to indicate that the variable gets replaced with text when the project gets compiled. It would be ideal if the variable can persist to the WebHelp output and I could then set the variable on a per session basis.

Thanks,

Joe

Willam van Weelden
Inspiring
November 24, 2010

Hi,

Variables get replace with text when you create your output. In RH8 you have variable sets, so you can create different outputs with different text in your variables.

Dynamically changing content is done trough JavaScript. This involves a lot of scripting in your RH project and asking the question means that you don't want that.

Greet,

Willam