Odd question. Can a standard link to records be "intercepted" in Skuid?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Odd question. Can a standard link to records be "intercepted" in Skuid?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Nope. You'd have to attach an onclick handler to every link, which is a Javascript/jQuery functionality than Skuid.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Whoa! deja vu! Totally had this whole next part happen before.

I've done something before where all telephone fields on page were custom rendered using inline code and not individually setting a snippet on each field.

I'm wondering if I could do the same thing with this requirement.
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Ok, I think I misread your initial post. Can you elaborate a little more on what exactly you are trying to do? Are you trying to change where the link goes, or are you trying to change how it's rendered?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
I'm trying to change what happens when you click on the link. I'd like to update the window.history using pushState and then run some additional javascript.
Photo of Andrew Duensing

Andrew Duensing, Employee

  • 740 Points 500 badge 2x thumb
Cool, yeah you could probably use something similar to this.

You will probably have to change the selector to be more specific, and maybe add a class to the types of links that you want to intercept.
Photo of Moshe Karmel

Moshe Karmel, Champion

  • 8,646 Points 5k badge 2x thumb
Hey Pat congrats, on 1000 posts (fastest user to 1000 posts since 1986) !
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Yes,  congratulations are in order to Pat Vachon!