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 Apps
Answered

datacardvalue

(0) ShareShare
ReportReport
Posted on by 48

Hi there,

 

Sorry if this is a newbie question, I'm not proficient in programming languages but I'm creating an App for work and there's one thing I'm not getting right, maybe it's not even possible.

 

 

I'm making an App where I have to register users, and I'm using a DataCardValue box to type in their names. The form I'm using has a lot of info I have to register so I have to fill out 2 screens for each user. On the 2nd screen I would like my DataCardValue box to be automatically filled with the information I typed on the 1st one, and I managed to do it by typing " DataCardValue62.text " and for the 1st user I registered, it worked fine. The problem is that on all the users registered after that one, the DataCardValue box on the 2nd page of their registration always has the name of the 1st user, and I would like it to always update.

 

Sorry if it's not very well explained, English is not my native language.

 

Thanks in advance for any replies,

 

Miguel Mota

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi Miguel,

    Could you please show the screens you are using for your app.

  • motami Profile Picture
    48 on at

    Hi there,

     

    Sorry for replying late but I only have access to the app at work.

     

    I've included the screens and I was talking about the box where it says "Funcionário", on the 1st screen I want people to type the name of the employee and on the 2nd screen I want it to just display the name written on the 1st screen, I even disabled it so people can't edit it.

     

    Hope you can shed some light,

     

    Thanks,

    Miguel

    screens.jpg
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @motami,

     

    Do you want the name that you typed within the "Funcionário" data card of the first screen to be filled within the "Funcionário" data card of the second screen?

     

    I have made a test on my side, please take a try with the following workaround:1.JPG

     

    3.JPG

     

    2.JPG

     

     

    Set the OnSelect property of the "Navigate" button within the first screen to following formula:

    Set(NameVariable,DataCardValue2.Text);Navigate(Screen2,ScreenTransition.Fade)

    Note: The DataCardValue2 represents the Text input control within the "Funcionário" data card.

     

    Set the Default property of the Text input control within the "Funcionário" data card of the second screen to following formula:

    NameVariable

    Set the DisplayMode property of the Text input control within the "Funcionário" data card of the second screen to following formula:

    DisplayMode.Disabled

    The GIF image as below:Test1.gif

     

     

     

     

    Best regards,

    Kris

  • motami Profile Picture
    48 on at

    Hi @v-xida-msft,

     

    Thanks for the reply, it solved the problem, but made me discover another one, lol.

     

    It wasn't only getting the name of the 1st registered user, it was also getting the 1st registered user second screen. I assume it was something I "ruined" while messing around with the app so I decided to start fresh and make a new one in Tablet mode, so now I only have one screen with all the data and works fine.

     

    screen_new.jpg

     

    If you don't mind helping out a little more, all of those data fields (including the Funcionário) are/will be dropdown menu choices.

    With the exception of the Funcionário field, all others are NOT required to make any selection, in which case it will revert to a default value I set on the sharepoint list this app uses.

     

    Edit: How can I make it so it colors the text Blue (for example) if the user makes a selection on the dropdown menu, but if they don't (it will display the default value) the text is colored Red? I found out how to do this by messing around in the SelectionTagColor with a conditional statement: If(DataCardValue2.Selected.Value = "Sem permissões"; Red; Blue), worked like a charm!!

     

    Thanks in advance for your help,

     

    Miguel

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 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard