web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    153,411 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 340

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard