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
Solved! Go to Solution.
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:
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:
Best regards,
Kris
Hi Miguel,
Could you please show the screens you are using for your app.
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
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:
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:
Best regards,
Kris
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.
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
User | Count |
---|---|
140 | |
137 | |
78 | |
78 | |
73 |
User | Count |
---|---|
225 | |
179 | |
68 | |
68 | |
58 |