Breee Posted April 28, 2017 Report Share Posted April 28, 2017 Hello. I need to pass an autovalue parameter into a pop-up window. I'm using a multi-page submission form. The second page of the form has the pop-up html block to capture the autonumber (ProjectID) generated on the parent form. My autonumber field is "ProjectID." I can view the 'Project ID' on the second page of the form; it will not however pass into the pop-up window. This is the code that I have and it's only working for new information entered. The autonumber "Project ID" field that I'd like to pass into the pop-up window is not working. All new data is going to the table except the "Project ID." Code being used is as follows: <a class="cbMenuItem"href="#" onclick="window.open("http://www.TTTest.com/brokerlookuptest.html?ProjectID=[@InsertRecordProjectID]","mywindow", "menubar=1,resizable=1,width=500,height=500")">ADD BROKER</a> | Any assistance would be greatly appreciated. I've read up on parameters, query strings, pop-up windows, and used the Caspio Link Menu generator for the code. I'm thinking that something is still off with the syntax as it relates to the parameter be passed. Thanks! Bre Quote Link to comment Share on other sites More sharing options...
Mathilda Posted May 2, 2017 Report Share Posted May 2, 2017 On 4/28/2017 at 10:01 AM, Breee said: Hello. I need to pass an autovalue parameter into a pop-up window. I'm using a multi-page submission form. The second page of the form has the pop-up html block to capture the autonumber (ProjectID) generated on the parent form. My autonumber field is "ProjectID." I can view the 'Project ID' on the second page of the form; it will not however pass into the pop-up window. This is the code that I have and it's only working for new information entered. The autonumber "Project ID" field that I'd like to pass into the pop-up window is not working. All new data is going to the table except the "Project ID." Code being used is as follows: <a class="cbMenuItem"href="#" onclick="window.open("http://www.TTTest.com/brokerlookuptest.html?ProjectID=[@InsertRecordProjectID]","mywindow", "menubar=1,resizable=1,width=500,height=500")">ADD BROKER</a> | Any assistance would be greatly appreciated. I've read up on parameters, query strings, pop-up windows, and used the Caspio Link Menu generator for the code. I'm thinking that something is still off with the syntax as it relates to the parameter be passed. Thanks! Bre Hello Bre, You need to use syntax [@InsertRecordProjectID] only when you receive a parameter onload in a field on the second datapage. The query string will be like this: http://www.TTTest.com/brokerlookuptest.html?ProjectID=[@ProjectID] Quote Link to comment Share on other sites More sharing options...
Breee Posted July 20, 2017 Author Report Share Posted July 20, 2017 Thank you Mathilda. This solution worked. I know that I'm late responding. Been a while since I checked back in the forum. Bre 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.