Forum Discussion

JafarTiyar1's avatar
JafarTiyar1
Qrew Trainee
6 years ago

Rich Text Formula to Open URL In New Window

Hi all,

I wanted to create some buttons on a form in my app that show an image, and clicking on it sends you to a URL.

the field type is Formula - Rich Text and the code is below...

"<a href=\"MyURL"><img src=\"MyImage" width=125></a>"

this formula works but opens the URL in the same window. Can someone please advise how i would amend this code to have the link open up in a new window?

I chopped together this formula from the magic buttons app and i tried searching the forum for the answer but to no avail

Thanks in advance :-)

6 Replies

    • RobIV's avatar
      RobIV
      Qrew Cadet
      You�re building a string containing quotes. You�ll have to escape them or change the quote types. See if changing the quotes around �_blank� to single quotes works. You�ll need to do the same for the other attribute too.
      • JasonJohnson2's avatar
        JasonJohnson2
        Qrew Cadet
        Thanks for the tip with the single quote.

        ------------------------------
        Jason Johnson
        ------------------------------
    • JafarTiyar1's avatar
      JafarTiyar1
      Qrew Trainee
      thanks for the fast reply. I tried that and get the following error