I want to use the Substitute function to substitute the targeted word in an HTML Text Box string with the value of a variable tied to a Textinput Field. For instance, the Textinput Field assigns the value of the variable named "varSubsitution" with the string "house". I then want to use the Substitute function to replace the string "home" in the HTML Text Box with the variable value "house". The text in the HTML Text Box is black. To make the string "house" stand out I want its font to be blue. The formula I came up with for the HTML Text Box is: HtmlText = Substitute(Parent.Default,"home", "<b><font color=blue>varSubstition</font></b>"). The problem is that instead of substituting the variable value "house" for "home" in the HTML Text Box, the Substituition function substitutes the actual string "varSubstition". What would be the formula that would substitute the value of the variable "varSubstition" for "home" instead of the string "varSubstition"? TIA. Bruce.
Solved! Go to Solution.
Hi @brucegil
I think this is what you're looking for...
Substitute(Parent.Default,
"home",
"<b><font color=blue>" & varSubstition & "</font></b>"
)
Hi @brucegil
I think this is what you're looking for...
Substitute(Parent.Default,
"home",
"<b><font color=blue>" & varSubstition & "</font></b>"
)
Tim, your right. Thanks for the prompt response. I always have problems with those pesky double quotes and ampersands
User | Count |
---|---|
256 | |
106 | |
86 | |
51 | |
43 |