cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EmericTms
Frequent Visitor

Create a custom gallery with one column and a defined number of rows and without connection to a datasource

Hello,

 

I would like to have a Gallery with one column of Radio buttons, as shown in the picture below. But I don't want my gallery to be connected to any datasource.  

EmericTms_0-1663234706283.png

The reason for me doing that is to facilitate the patch function to send data. I have 59 radio buttons, and the selected value of each radio button must be sent to a sharepoint list with lots of other information from textinput, labels etc. in total 13 other fields. (so one radio button result should be equal to one row of the sharepoint list; so I need to patch 59 rows each time). 

With a gallery I just have to do Gallery1.Allitems, but without it I need to create a patch function for each radio button which is way too long. 

 

So I created a custom gallery, but the Items property of a basic gallery is set to "CustomGallerySample" which only contains 4 rows. 

My question : Is there a way to increase this number of lines (for example to have 59 lines) ? Or else to have the same type of Grid as this gallery, with radio button to complete and the number of rows I want ?

 

Thank you for your help !

 

Best regards,

Emeric 

1 ACCEPTED SOLUTION

Accepted Solutions
SebS
Super User
Super User

Hi @EmericTms 

 

Create a blank Vertical Gallery in Items property place Sequence(59) or number of Radio buttons You would like to have Than add input Radio Button that will do the trick.

 

Also You can refer to each item thru Value 1 to 59 if you need as well what make things easy later one.

 

Hope This helps

 

 

Regards


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

2 REPLIES 2
SebS
Super User
Super User

Hi @EmericTms 

 

Create a blank Vertical Gallery in Items property place Sequence(59) or number of Radio buttons You would like to have Than add input Radio Button that will do the trick.

 

Also You can refer to each item thru Value 1 to 59 if you need as well what make things easy later one.

 

Hope This helps

 

 

Regards


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

It is perfect, thank you !

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,147)