Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

App works in 'Preview Mode' but not 'Play Mode'

I've been working on this project for awhile now and in the past couple days, I was cleaning things up for launch. I had always ran the app through the preview option within the editing window. When I published the app and opened it in 'Play Mode', many parts of my app were no longer working. 


I have this page where the user enters in justifications for numbers they have previously submitted.

Justifications.PNGEach text box you see here has the following in their 'Default' Property:


Since the data may or may not be approved, this allows the users to use their last submission as a starting point whether their submission has been approved or not.


Once the user has filled out the form, they will click the preview button which will take them to a page that presents the entire form that they just filled out. When they click the button, it first checks if the required fields have been filled out and if so, patches the input to the pending columns in CategoryReference and then changes approved to false.


 This is the code inside the Preview Button:

//If any of the required fields are empty, the user will not be able to progress
If(IsBlank(PercentTotalInput.Text) || IsBlank(Q1Input.Text) || IsBlank('Q2.1Input'.Text) || IsBlank('Q2.2Input'.Text),Set(RequiredFields,true),

//Updating the 'CategoryReference' variable with input fields. All values are put into the pending columns.
    PercentPending: Value(PercentTotalInput.Text),
    eCommerceBusinessContextPending: Q1Input.Text,

//Prepares to preview and navigates


This should (and does in preview mode) fill the variable with the relevant data but it doesn't in 'Play Mode'. Instead, when the Preview Button is clicked, all of the inputs are cleared and then it moves to the next page. I don't get why the app is acting differently when all of the code is the same. Is this a known issue?


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,226)