Multi option Drop Down

Instances : {note}Add the number of instances {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; name=count} {endnote: trim=yes}

{note}{formmenu: Item A; Item B; Item C; Item D; name=TYPES; multiple=yes}{endnote: trim=yes}
{repeat: count; locals=new\ }{repeat: for item in types; trim=yes}
{=item}{endrepeat: trim=yes} {endrepeat}

First of all thank you for all the support you all have been giving me this last month.Some of this doubts maybe be pretty simple and I hope help out soon like I am getting help.

So this is a dropdown with in a drop down.The data from 1st drop down is getting copied to the second drop down as well, I need the option to select the items for each drop down.

Like first I will select no. of instances then I want to select what all do I want to include in each instances and It would be great if some one could no. the contents of the instances :

EX :

Instance 1 :
Item A 1 :

Instance 2 :
Item A 2:
Item B 2 :

Instance 3 :
Item A 3:
Item B 3 :
Item C 3 :

Thanks in advance !

Hey @Bhima_Charan_Tudu,
Welcome to the community.

You can use the seq function for your use case. Sharing a sample snippet here. You can read more about it here.

{dropdownList=seq(1,20)}
Instances : {note}Add the number of instances {formmenu: name=count; values={=dropdownlist}} {endnote: trim=yes}
{note}{formmenu: Item A; Item B; Item C; Item D; name=TYPES; multiple=yes}{endnote: trim=yes}
{countList=seq(1,count)}
{repeat: for x in countList; locals=new\ ; trim=no}
Instance {=x}
{repeat: for item in types; trim=no}
{=item}{=x}{endrepeat: trim=yes} {endrepeat}

Hello @Samay_Jain Thank you for the reply this does work till some extent but the issue is here.

As you can see after selecting the no. of instances
on Instance 1 I only need Item A
and on Instance 2 I need both Item A and B how to solve that, It's getting selected for both.
and also the formatting issue.

Can you please help ?

Hey @Bhima_Charan_Tudu,
Please help me in understanding this better. What would be the expected output in case of 2 Instances and Item A,B, C selected?

Or please feel free to schedule some time here.

Best
Samay