MikeTamoush
3 years agoQrew Commander
Rich Text Button Syntax Help
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
------------------------------
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
------------------------------