How to Create, Insert and Edit User-Defined Variables in RoboHelp

User-defined variables are one of the many wonderful features of Adobe RoboHelp.

When you first launch RoboHelp, the STARTER screen offers many types of help projects to create:

(Click on images to enlarge them)
Robohelp 8 offer many help project types
All these project types offer a User Defined Variables pod. Some of these pods come with pre-defined default user-defined variables; and others don’t. Here are some examples:
Policies and Procedures:
RoboHelp 8 Policies and Procedures project User-Defined Variables Pod
Knowledge Base:
RoboHelp 8 Knowledge Base project User-Defined Variables Pod
Application Help:
RoboHelp 8 Application Help project User-Defined Variables Pod
E-Learning:
RoboHelp 8 E-Learning project User-Defined Variables Pod
To create your own user-defined variable:
1) Click the Create New User-Defined Variable button
RoboHelp 8 Create a new User Defined Variable Button
2) … and display the New Variable dialog box:
RoboHelp 8 New USer-Defined Variable dialog box
3) Enter a Variable Name and a Variable Value. For example, “DocName” and “Principle Document”“.
4) To enter this variable in any topic, click your cursor where you want to enter the variable.
5) Then select Insert > User Defined Variable from the main menu to display the Fields and Variables dialog box:
RoboHelp 8 Fields and Variables dialog box
6) Select the user-defined variable you like and click the OK button to insert it into the help topic.

The value of the variable will display in the topic:
Inserting a user-defined variable into a RoboHelp 8 topic

Here is the beauty of the RoboHelp user-defined variables:

You can insert the same variable in more topics than one. Let’s assume you’ve used the DocName variable in 50 different topics. What happens if the name of the document changes? Simple: you just edit it only once in the User Defined Variables pod and save, and bingo!  The value is updated accordingly in all 50 topics at once!

To edit the value of a RoboHelp user-defined variable:

1) Right-click the variable in the User Defined Variables pod to display the pop-up menu.
2) Select Edit to display the User Defined Variable Properties dialog box:
RoboHelp 8 User Defined_Variable_Properties dialog box
3) Change the Variable Value and click OK to update the value in all topics at once.