
Announcements
Context: A person will need an allowance for a specific set of months, can be 3 months, 4 months up to a maximum of 12. Each month can have a different $ value. 10$ in August, 12$ in Sep etc.
Is there any way of doing this in power apps except adding into my form all columns and then making them visible based on the year field?
i.e. add 48 fields in the form, from January 2024 to December 2028.
If the YEAR field is 2024 then make visible fields for January 2024, Feb 2024, Mar 2024 etc to Dec 2024. Everything else is hidden.
Is there a smarter way of doing this?
Hello @改善
Yes you can do it by adding a code similar to what Rezza does in this tutorial.
https://www.youtube.com/watch?v=KjUJZr5Vn_Y&t=368s&ab_channel=RezaDorrani
What you can do is that for every DataCard's Visible property, you just put the varYear=2024. which means that if varYear is equal to something else, that DataCard will not show up.