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

Notifications

Announcements

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
    153,117 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
    153,117 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard