Skip to main content

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!

Check this out: https://community.skuid.com/t/javascript-snippet-to-open-popup-window


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!


Reply