How to save and display dynamic user inputs based on another dynamic input

Hi @ravi_k, welcome to the forums. Could you please format your code for better reading? You might has a read here: