Master Posted June 9, 2017 Report Share Posted June 9, 2017 How can I pass the value that is entered on a submission page to a popup page before I submit the data? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted June 9, 2017 Report Share Posted June 9, 2017 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 Quote Link to comment Share on other sites More sharing options...
Kurumi Posted December 17, 2018 Report Share Posted December 17, 2018 Hi @Master, You can also try Caspio's Generator for Pop-up windows, check it here: https://howto.caspio.com/tech-tips-and-articles/common-customizations/how-to-generate-link-menus-and-popup-windows/ I hope this helps! Quote Link to comment Share on other sites More sharing options...
Paul160 Posted June 9, 2021 Report Share Posted June 9, 2021 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. Quote Link to comment Share on other sites More sharing options...
TellMeWhy Posted June 9, 2021 Report Share Posted June 9, 2021 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 Quote Link to comment Share on other sites More sharing options...
Paul160 Posted June 10, 2021 Report Share Posted June 10, 2021 Thanks @TellMeWhy now I am confused, no matter what it shows as cv%20cv. Could it have to do with pages being embedded in Weebly? I am at a total loss Quote Link to comment Share on other sites More sharing options...
Paul160 Posted June 10, 2021 Report Share Posted June 10, 2021 Thanks @TellMeWhy now I am confused, no matter what it shows as cv%20cv. Could it have to do with pages being embedded in Weebly? I am at a total loss Quote Link to comment Share on other sites More sharing options...
Paul160 Posted June 10, 2021 Report Share Posted June 10, 2021 Tested with caspio as pop up source and works perfectly , thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.