web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add fields to gallery ...
Power Apps
Answered

Add fields to gallery based on dataflex table

(0) ShareShare
ReportReport
Posted on by 36

Hi everyone,

 

I'm currently having some issues with the following scenario:

- I have a dataflex table that contains all months (January - December)

- I can select a start and end month

- I then created a gallery and filterered all items based on the selected start and end months

- I have a number field and that number is equally divided into all months

powerapps_problems.png

I have added checkboxes and also plan to enable the edit mode of the input field, to allow users to split the costs differently for each month.

 

Unfortunately I cannot use If(ThisItem.CheckboxName.Checked; DisplayMode.Edit; DisplayMode.View) to enable/disable the DisplayMode. I can only use the columns/values that are stored within my dataflex table. I can also not modify the value of my checkbox in preview mode or access ThisItem.

 

Am I missing something?

 

Thanks in advance

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Nilsnutz 

     

    Use this formula for DisplayMode of the TextInput inside Gallery:

     

    If(CheckboxName.Value; DisplayMode.Edit; DisplayMode.View)

     

    Please show me the error you get here:

    Capture.PNG

  • Nilsnutz Profile Picture
    36 on at

    Thanks for your input. That solution worked. However i found that my the controls I am currently using are not working as expected. My app is a Teams Powerapp and I had to activate classic controls to use the .Value property. The "new" checkbox controls have a .checked property, but I cant check/uncheck it in preview mode.

     

    The errormessage in Start Month is just work in progress. I was trying to clear the endmonth value if my startmonth value is changed an now higher but didnt finish that yet.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard