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

how to change DataCardValue in a form ?

Hallo,

 

I'll try to explain my problem...

 

I have a form with a field "EXC". (form4 > EXC_DataCard1 > DataCardValue51)

I have too a label "Français" on the same page. (Label26)

 

How to update the text of my field "EXC" when I click on the label ? I want to add the value "Français" to the content of my field "Exc"... What should I put in the property "OnSelect" of my label ? (a picture is attached to explain...)

 

I have to use a variable ?

 

Thanks a lot 🙂

 

Audry

1 ACCEPTED SOLUTION

Accepted Solutions
KroonOfficeSol
Level 10

Re: how to change DataCardValue in a form ?

Use a local variable to store the value in, Set this value on the select statement off the control (containing 'Français' ) and set the default value off the Textbox to that variable. Formula:

 

UpdateContext({EXC: SelectedField.Text})

When the field by default has a value then set the variable equal to this value at the OnStart or Visible property off the screen.

 

Hope this helps.

View solution in original post

1 REPLY 1
KroonOfficeSol
Level 10

Re: how to change DataCardValue in a form ?

Use a local variable to store the value in, Set this value on the select statement off the control (containing 'Français' ) and set the default value off the Textbox to that variable. Formula:

 

UpdateContext({EXC: SelectedField.Text})

When the field by default has a value then set the variable equal to this value at the OnStart or Visible property off the screen.

 

Hope this helps.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,829)