Jump to content

Passing Autonumber Parameter value into a pop-up window


Recommended Posts

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(&quot;http://www.TTTest.com/brokerlookuptest.html?ProjectID=[@InsertRecordProjectID]&quot;,&quot;mywindow&quot;,
&quot;menubar=1,resizable=1,width=500,height=500&quot;)">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

Link to comment
Share on other sites

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(&quot;http://www.TTTest.com/brokerlookuptest.html?ProjectID=[@InsertRecordProjectID]&quot;,&quot;mywindow&quot;,
&quot;menubar=1,resizable=1,width=500,height=500&quot;)">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]

 

Link to comment
Share on other sites

  • 2 months later...

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...