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 / Form not displaying af...
Power Apps
Answered

Form not displaying after publish

(1) ShareShare
ReportReport
Posted on by 222
 
Hi,
In preview, I have a form.
When the app is published, the form does not display when Add files is clicked.
 
OnSelect of but_AddFiles, I have a variable : 
Set(varAddFiles, true)
FormDefaultMode = New
Item = Defaults('Requests')
 
Issue: When the app is published, form will not display when Addfiles is Clicked.  I have cleared cookies and browsing data, etc.
 
Any assistance will be appreciated.
 
Kind regards
 
Rene Voller
 
Categories:
I have the same question (0)
  • Verified answer
    Haque Profile Picture
    3,653 on at
    Hi @RVoller,
     
    To me the issue is likely because setting FormDefaultMode = New and Item = Defaults('Requests') as separate statements in the OnSelect does not actually update the form control’s properties dynamically. These are properties you set on the form control itself, not variables.
     
     
    If I understood correctly, you have the following setup:

    You are setting up a variable on onSelect action.

    Form’s Default mode = New

    Item = Defaults(Requests)
     
    Solution Approach:
     
    If this is the case, let’s do a bit of workaround, At OnSelect of but_AddFiles, let’s assign the variable and keep it in reset mode.
    Set(varAddFiles, true); ResetForm(Form2), It should look like below screen shot.

    Note: Please replace Form2 with your form name.

    Then in the form’s DefaultMode action property set the following expression:
    If(varAddFiles, FormMode.New, FormMode.Edit)

     
    Next in the form’s Item :
    If(varAddFiles, Defaults('Requests'), YourSelectedRecord)
     



    Note: In my case the data-source name is Inventories, and my selected record is Gallyer1.Selected. If you don’t have any selected record (YourSelectedRecord  for me it is Gallery1.Selected), you manage the logic that way.
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
    @RVoller, for the attachment control did u added any visible property ?
  • RVoller Profile Picture
    222 on at
    Hi @Haque,
     
    Thank you for the time and effort to respond to my query.
     
    The solution worked!
     
    Kind regards
     
    Rene Voller

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard