The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to pass a value(or Parameter) from one dynamic content block to another dynamic content block?

ranadip1
Kilo Explorer

Does any one have idea of how to pass value from one dynamic content block to another dynamic content block so that we can make use of that parameter value to perform any kind of action with that parameter value?

7 REPLIES 7

solutioningnow
Giga Guru

Hello,



I was also having similar requirement for one of my client, to achieve this I have done below configurations:



Create different Pages for different dynamic block. For example:


page_1 include dynamic_block1


page_2 include dynamic_block2


To Pass values from page_1 to page_2, I have embedded paramater like /ess/page_2.do?sysparam_p=test


and access the same in dynamic_block2 like below:


RP.getParameterValue('sysparam_p');



Please mark answer as correct/helpful, if it was really helpful 🙂



Regards,


Solutioner


Logo.png


Enhance Knowledge NOW@ www.solutioningnow.com


http://www.solutioningnow.com/


solutioner now   i have an input field in dynamic_block1   like an input field ( For ex : <input type="text" name="abc" id="abc" /> ) . i want to pass the value of abc to another dynamic content block where i want to use it for some purpose.. how can i do that?? can you please help?


You can achieve using below:



<a href="ess/dynamic_block2.do?sysparam_abc"+gel("abc").value>Page 2</a>



Using above code link is generated with parameter dynamically.



Please mark answer as correct/helpful, if it was really helpful 🙂



Regards,


Solutioner


Logo.png


Enhance Knowledge NOW@ www.solutioningnow.com


http://www.solutioningnow.com/


actually the dynamic content block 2 is embedded within another cms page (url suffix : page_2). now within the dynamic content block1 i have written an onclick function which will redirect to page 2 within which the 2nd dynamic content block is embedded and i want to retrieve the parameter value of <input type="text" name="abc" id="abc" /> ) which is embedded in 1st dynamic content block. How can that be achieved?