Skip to main content
Question

Rich Text Button Syntax Help


Forum|alt.badge.img+20
Typically for open as popup, I have something like this:

var text URL = MyURL
"<a class='OpenAsPopup' data-height=800 data-width=900 data-refresh=true style=\"text-decoration:none; background: #688EB3; border-radius: 5px; color: #ffffff; display: inline-block; width:145px; height:22px; text-align: center;  font-size: 12px \"href='"
& $URL
& "'>Button Words Here</a>"

I am trying to make the Open as popup a variable, so something like:

var text Popup = If(Condition = true,"class='OpenAsPopup' data-height=800 data-width=900 data-refresh=true");

"<a" &Popup &  "style=\"text-decoration:none; background: #688EB3; border-radius: 5px; color: #ffffff; display: inline-block; width:145px; height:22px; text-align: center;  font-size: 12px \"href='"
& $URL
& "'>Button Words Here</a>"

The above didnt work. I know it is the syntax of how i added that variable in. Can anyone explain how to do it?

------------------------------
Mike Tamoush
------------------------------

MarkShnierYou
Forum|alt.badge.img+24
Try this

var text Popup = "class='OpenAsPopup' data-height=800 data-width=900 data-refresh=true";

var text DoIt=
"<a" &Popup &  "style=\"text-decoration:none; background: #688EB3; border-radius: 5px; color: #ffffff; display: inline-block; width:145px; height:22px; text-align: center;  font-size: 12px \"href='"
& $URL
& "'>Button Words Here</a>";

If(Condition = true, $DoIt)


------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------