cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LYNCHJL
Helper II
Helper II

Setting Variable to value of item field

Hi, 

 

How can I set a variable (varSubmitStatus) to the value of a field (Submission_Status_DataCard) in the form I have open in edit view?

 

Many thanks,

Jesse

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Set the variable in the OnVisible of the Screen where the form is located:

   Set(varSubmitStatus,Submission_Status_DataCard.Text)

You can also put it on a Button so when yo click, the variable will be available to be used.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@LYNCHJL 

Use

Set(varSubmitStatus, DataCardValue1.Text) // for Text field

Set(varSubmitStatus, DataCardValue1) // for Numeric field

Set(varSubmitStatus, DataCardValue1.SelectedDate) // for Date Picker

 

Replace DataCardValue1 with the DataCardValue number relevant to the the DataCard Submission_Status_DataCard.

 

eka24
Super User
Super User

Set the variable in the OnVisible of the Screen where the form is located:

   Set(varSubmitStatus,Submission_Status_DataCard.Text)

You can also put it on a Button so when yo click, the variable will be available to be used.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

great, thanks!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,648)