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 / Show next value based ...
Power Apps
Answered

Show next value based on column with increasing name with number value

(0) ShareShare
ReportReport
Posted on by 44

Hi,

 

I am setting up a function where I use a form of which I want the data card to update when you click the next button. I have created all columns to have the same name with a number after, TextPage1, TaxPage2 and so on. 

 

I want to increase the value with a variable each time you click the next button, so for example "TextPage"&varPage+1. But I cannot figure out how to make the data card read from this increasing value when it picks the column. When I use ThisItem.TextPage1 it shows the text that i want, but how do i implement it so that it works with the increasing value?

 

Thanks for any help you may be able to give

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,378 Most Valuable Professional on at

    Hi @DennisJarnstal ,

    Unfortunately you cannot refer to field names dynamically - you would need to hard-code it all.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • DennisJarnstal Profile Picture
    44 on at

    Hi Warren,

     

    I havent quite been able to figure out how to hard code this into my solution, do you have any suggestion for how to fix this?

     

    Best regards

    Dennis

     

     

  • Verified answer
    WarrenBelz Profile Picture
    155,378 Most Valuable Professional on at

    Hi @DennisJarnstal ,

    Something like this - this is only the bit referring to the field

    Switch(
     YourValueHere,
     1,
     TextPage1,
     2,
     TextPage2,
     3,
     . . . . . .
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • DennisJarnstal Profile Picture
    44 on at

    Thank you for your help, how unfortunate that there wasnt a smoother way to make it 🙂 have a great day

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard