Add custom onclick Javascript to skuid

Hi Emily - Thank you so much for the reply!
The JS snippet posted above, and the steps outlined are exactly what we have in place currently. The issue is that the apex runs and redirects to a URL in salesforce, but we want the process to stay in skuid- possibility through a wizard component? I am just not sure how to pass the variables to the field editor in the wizard after the apex runs.  
I created a new post that more accurately addresses the issue we are having:
https://community.skuid.com/t/javascript-parameters-passed-to-field-in-wizard-component