cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
motami
Level: Powered On

datacardvalue

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: datacardvalue

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: datacardvalue

Hi Miguel,

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

motami
Level: Powered On

Re: datacardvalue

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

Community Support Team
Community Support Team

Re: datacardvalue

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

motami
Level: Powered On

Re: datacardvalue

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 305 members 5,803 guests
Please welcome our newest community members: