Skip to main content
Question

Redirect button that pulls URL from another field

  • September 27, 2021
  • 0 replies
  • 42 views

Hi,
I have one field that collects a URL input from the user and I am trying to make a button that will take the user inputted URL and redirect to it. Where I am having trouble is getting the button to grab the value in the other field. I was hoping someone who knows more than I could point me in the right direction.

Here is my code so far:
"<a class=\"Vibrant Primary\" style=\"width:310px; text-align: center;\" href=\"fid=213\" target=_blank>Go to Share Point</a>"

the "fid=213\" portion is the portion that I have been focusing in and what's in there right now is very wrong.

Thanks in advance!!
-Hank

------------------------------
Hank Halverson
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
here is the generic format

var text Words = "Click here to display record";
var text URL = URLRoot() &"db/" & Dbid() & "?a=dr&rid=" & [Record ID#];

"<a class='Vibrant Primary'" & " a href=" & $URL & " target=_blank" & ">" & $Words & "</a>"

..... so it should be


var text Words = "Go to Share Point";
var text URL = [my sharepoint URL data entry field];

"<a class='Vibrant Primary'" & " a href=" & $URL & " target=_blank" & ">" & $Words & "</a>"

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------