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 Platform Community / Forums / Power Apps / Setting Variable to va...
Power Apps
Answered

Setting Variable to value of item field

(0) ShareShare
ReportReport
Posted on by 113

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

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @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.

     

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    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.

     

  • LYNCHJL Profile Picture
    113 on at

    great, thanks!

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

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard