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 / Unable to set global v...
Power Apps
Answered

Unable to set global variable when it is not blank

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

 

I'm using a variable (defaultComboValue) to hold the default selection value for a combo box. It will be blank initially and later updated to text input value from another modal box. When the 'defaultComboValue' is blank it works as expected and text input value gets assigned to it - Set(defaultComboValue, TextInput_reltdSkl_1.Text);

 

Although, whenever it is not blank (holding the previous value assigned to it), it does not get set to a new text value using the same formula. It just gives blank even after using Set() function. 

 

Please reply if anyone has any thoughts on this. 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,445 Most Valuable Professional on at

    Hi @rbn_nue ,

    The function

    Set(
     defaultComboValue, 
     TextInput_reltdSkl_1.Text
    );

    will set the variable to the content of the Text Box TextInput_reltdSkl_1 each time it is run, whether it is blank or not, over-writing whatever was there before. Are you saying you are having issues with this?

  • Verified answer
    rbn_nue Profile Picture
    on at

    Hi @WarrenBelz ,

     

    Thank you for the response. Yes, the issue was with the set function as mentioned. Although I observed that for some reason the text input was going blank after a flow run and this caused the issue. I moved up the set function before the flow was called and the issue was resolved. 

     

    Cheers. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard