Skip to main content
LDillmann
Participant
October 17, 2014
Question

Rh Variable displays variable name, not value

  • October 17, 2014
  • 1 reply
  • 515 views

In master page, header, I have inserted the chapter name. When I generate the output, it displays the variable name, PD Chapter Name, not the value of the variable. The code is unaltered from the button selection 'Insert Chapter Name' . Is there another step I'm missing? Thank you!

<p><?rh-variable_start name="pd-chap-name"

  value="&lt;&lt;PD Chapter Name&gt;&gt;" ?>&lt;&lt;PD Chapter Name&gt;&gt;<?rh-variable_end ?></p>

This topic has been closed for replies.

1 reply

Captiv8r
Legend
October 17, 2014

Hi there

Can you share screen captures of the variables pod as well as a topic or something depicting this in the final result?

Thanks... Rick

Participant
June 30, 2015

Hello, I am having a similar issue where my variable output is displaying the variable name and not it's value. I am currently using a MacBook Pro running OS X Yosemite. I am using ColdFusion Builder 3 to build the code and MAMP to run a local server. I have a very simple output to test whether or not I am getting correct output. The code is as follows:


index.cfm

<!DOCTYPE html>

    <html>

          <head>

                <title>Demo</title>

          </head>

          <body>

                <h1> hello world</h1>

                <cfset name = "John">

                <cfoutput>#name#</cfoutput>

          </body>

    </html>



After running this code, I receive the result:

hello world

#name#

I am confused on why the variable is displayed as the actual variable name and not its value. When running the exact same code in a windows environment, I receive the result as expected.

Community Expert
June 30, 2015

Hi Nicole, this is a Robohelp forum. You'll probably have better luck asking in the ColdFusion Builder forum.