Product : {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; name=count}
DETAILS:
{repeat: count}
Amount:
Date:
{repeat: count}
{formtext: name=count2; default=REFERENCE\ ; trim=no}{endrepeat}
{repeat: count}{formtext: name=count2; default=REFERENCE\ ; trim=right}{endrepeat}
{endrepeat}
So in this snippet whenever I am clicking on 2 or more I want the Reference 1 and Reference 2 to be same throughout and also as you can see the Reference are getting added up when increasing the count I don't want that.
Thank you in advance team.
And also I need help on the other thing I.e if one of the reference is blank I don't want it to show up.
@Dylan_Cable Can you help here ?
Hey @Bhima_Charan_Tudu,
Welcome to the community.
Please confirm if I understand your question correctly, based on what the user selects in the product dropdown, you want to show as many formtexts? Is this correct?
Currently you have nested repeat commands leading to the formtexts doubling up. Give this snippet a try:
Product : {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; name=count}
DETAILS:
{repeat: count}
Amount:
Date:
{formtext: name=count2; default=REFERENCE\ ; trim=no}
{formtext: name=count2; default=REFERENCE\ ; trim=right}
{endrepeat}
this is the issue I am facing the formatting is incorrect when adding multiple
as as you can see there are there are 2 sections for reference in a single dropdown.
Lets call it reference 1 and 2
when I am adding A to reference 1 all the other reference 1 cells should reflect A
similar for Reference B when I add 2 the same should happen something like this.
Eg :
XXX
1
2
XXX
1
2
XXX
1
2
XXX
1
2
Currently what is happening is whenever I add something to reference A its getting pasted in reference B as well, I am not looking for that.
Thank you in advance.
@Samay_Jain
Got it. In that case, we would need to give Reference 1 fields a different name as compared to Reference 2 fields. Give this a try:
Product : {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; name=count}
DETAILS:
Amount:
Date:
{formtext: name=count1; default=REFERENCE\ ; trim=no}
{formtext: name=count2; default=REFERENCE\ ; trim=right}
{repeat: count-1}
Amount:
Date:
{formtext: name=count1; default=REFERENCE\ ; trim=no}
{formtext: name=count2; default=REFERENCE\ ; trim=right}
{endrepeat}
Thank you @Samay_Jain , huge help.
Is there any way we could connect, I am working on something I require some guidance.
I am not getting enough help from the guide.
Thank you in advance.
Sure. Please feel free to schedule a call here. Or please let me know what time works for you.
Thank you @Samay_Jain . I'll schedule it asap.