Creator : Stateless form as a search parameter - using result in Page panel

Creator : Stateless form as a search parameter - using result in Page panel

Hi,
I have a stateless form containing a single lookup to a list of portfolios. I've put this form on a Page containing a lot of panels that will sum the results from a form where it matches certain criteria - how can I add the ID chosen in the stateless dropdown to the panel filter ?

  1. <panel>
  2.   <pr width='fill' height='fill'>
  3.     <pc padding='0px' bgColor='#FFFFFF' width='100%' hAlign='center' vAlign='middle'>
  4.       <pr width='fill' height='fill'>
  5.         <pc paddingTop='17px' paddingLeft='17px' paddingRight='0px' paddingBottom='17px' bgColor='transparent' width='50%' hAlign='center'>
  6.           <pr width='auto' height='auto'>
  7.             <pc>
  8.               <text color='#333333' size='20px' uppercase='false' underline='false' bold='false' italic='false' type='Text' value='Group Carbon (Last report) - Scope 1'> </text>
  9.             </pc>
  10.           </pr>
  11.         </pc>
  12.         <pc padding='20px' bgColor='transparent' width='50%' hAlign='center' vAlign='middle'>
  13.           <pr width='auto' height='auto'>
  14.             <pc>
  15.               <text color='#DA242A' size='24px' uppercase='false' underline='false' bold='true' italic='false' type='Form Data' displayType='actual' decimalPlaces='2' thousandsSeperator='LOCALE' decimalSeperator='DOT' numberScale='none' criteria='Added_User == zoho.loginuser &amp;&amp; emission_source.scope_field == &quot;Scope 1&quot; &amp;&amp; end_date in last 447 days' value='thisapp.carbon.carbon_emitted.sum'> </text>
  16.             </pc>
  17.           </pr>
  18.         </pc>
  19.       </pr>
  20.     </pc>
  21.   </pr>
  22. </panel>
So the panel value is currently returning a sum of selected values where :

Added_User==zoho.loginuser && emission_source.scope_field=="Scope 1" && end_date in last 447 days

how do I add :

&& portfolio.portfolio_ID==[The ID result of the stateless lookup here]