Creating text boxes as many as the selected number

Hello everyone, I have select one type question which contains number from 1 to 10. What I want is to output as many empty text boxes as the selected number, so if 1 is selected, 1 text box will appear, if 8 is selected, 8 text boxes will appear. I would be happy if you can help.

1 Like

Selamlar @anilgnydn,

I made what you asked with skip logic, it looks something like this :slight_smile:

Select - Text Box.xlsx (9.9 KB)

3 Likes

Thank you so muhc @hakan_cetinkaya thats what I want.

2 Likes

@hakan_cetinkaya, thank you for the wonderful solution! :clap: :heart: :partying_face:

@anilgnydn, alternatively the same could also be done as shown in the image shared below (slightly twisting the approach shared by @hakan_cetinkaya initially :heart:):

In the survey tab of your XLSForm:

Reference XLSForm:

Version 2.xlsx (10.7 KB)

2 Likes

Thats is great thank you @Kal_Lam

1 Like

This is great.
I have one additional request. If i want respondent to select 1 but 3 text boxes should appear, If 2 is selected, 6 text boxes should appear. How do I do it in build, Suggestions please!

This is great.
I have one additional request. If i want respondent to select 1 but 3 text boxes should appear, If 2 is selected, 6 text boxes should appear. How do I do it in build, Suggestions please!

Hello @i_4mawi welcome to the community !

Regarding your question if i understand it correctly please kindly use attached xls as solution.
Version 3.xlsx (10.0 KB)

Thanks,
I tried this solution before but it didn’t give me what i wanted.

When you write 1 or select 1 it creats 3 text boxes as you wanted

When you write 2 or select 2 it creats 6 text boxes as you wanted so what is wrong here.

This is great, thanks so much