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 / 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!

baseform.PNG
correctform.PNG
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

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
WarrenBelz Profile Picture

WarrenBelz 101 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard