How to have a VF page be a popup window instead of a page redirect in a Skuid mobile page???

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hi, we have added the following JS onto our Skuid mobile page in attempt to call a VF page as a popup instead of a redirect but JS does not work... can I ask assistance from the community on this question?

var http = location.protocol;
      		var slashes = http.concat("//");
		var host = slashes.concat(window.location.hostname);
      		var redirectURL = host+'/members/MemberPortalSagePayment?AppId=' + applicationRow.Id + '&RecordType=Crew&communityname=members';
      		window.open(redirectURL);
Photo of Yina Chun

Yina Chun

  • 792 Points 500 badge 2x thumb
  • anxious!

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
What happens when you add console logs on the variables in this script?  Is your redirectURL value a correctly formed URL?  I suspect you are not geting all the values you hope to get.