Jump to content

Pass parameter from a submission page to a popup page


Recommended Posts

You can try the code below in HTML below the field

 

<input type="button" onclick="getlink();" value="Open" />

<script>

function getlink(){

var id = document.getElementsByName('InsertRecordFIELDNAME')[0].value;
var url = "URL OF THE PAGE&n=" + id;
alert(url);
window.open(url,'popup','width=600,height=450,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=100,top=100'); 

}
</script>

It will generate a button to pass the value over to a pop up page. You need to replace FIELDNAME with the actual field name that you keep the value in and also URL OF THE PAGE with the pop up page URL

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...
5 hours ago, Paul160 said:

Hi @MayMusic,

in regards to the above if my parameter has spaces then the receiving field shows as eg ab%20cd instead of ab cd, how can I rectify this.

I am a complete newbie, thanks in advance.

That's how it works, it's on the Browser Level, but it should still pass it normally. it works fine on my end
image.png.daf2c03ddd897abb424e6dff608a127e.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...