Skuid button opens popup window

  • 1
  • Question
  • Updated 8 months ago
  • In Progress
In regular HTML and Javascript I can get a button to pop up a window and redirect to a page. 

We'v updated our Account page in skuid, but I want to view the Salesforce Classic page by clicking a button that would popup a window or go to a new page using this syntax: 

https://domain.my.salesforce.com/{{{$Model.Account.data.0.Id}}}?nooverride=1&sfdc.override=1 

What is the js syntax for my button in skuid that would popup my Salesfoce Classic account page?  


Here's a code pen showing the button function in standard HTML code:  

https://codepen.io/nickfs000/pen/QQXapY

The js script used was: 
<script>
function myFunction() {
    window.open("https://www.skuid.com");
}
</script>

I'm guessing I would replace ."https://www.skuid.com"; with this code?

https://domain.my.salesforce.com/{{{$Model.Account.data.0.Id}}}?nooveride=1 
Thank you!
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb

Posted 8 months ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb
I was able to create the JS popup button with a regular URL as shown, but how do I go about rendering the Salesforce Classic page that I'm trying to view via the popup button? Thanks!