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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Variable is not assign...
Power Apps
Unanswered

Variable is not assigning immediately when going to next screen

(0) ShareShare
ReportReport
Posted on by 248

Hi and happy new year!

 

I have multiple screens.  On the welcome screen the user has a choice of choosing a which form they need to fill out.  When the user clicks the form, the next screen only shows the base fields needed for every form.  The correct fields show up when the user clicks on the back button which takes them back to the welcome screen and clicks the form button again.  On each button i have the following code:  

 

Set(CurrentTemplate, "Counseling Memo");
Set(varBAHHeader1, JSON(Image9.Image, IncludeBinaryData));
Set(varBAHHeader2, JSON(Image10.Image, IncludeBinaryData));
Set(htmlCurrentTemplate,HtmlCounseling.HtmlText); Navigate(scr_FormandLetter)

 

The CurrentTemplate variable shows/hides the correct fields on the scr_FormandLetter.  

The htmlCurrentTemplate captures the correct HTML template to send to data to be converted to PDF.

 

I only have a single screen that contains a split view of the form and HTML text.  I didnt want to create a new screen for every form type because theyll be more than 20 forms by the time the app is fully completed.

 

I tried researching what may be causing this but wasnt able to find anything.

 

Thank you for your time!

Categories:
I have the same question (0)

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard