Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Hiding SelectedRecordTitle when submitting a new request

(0) ShareShare
ReportReport
Posted on by 11
Hi all,
 
I have an app that displays requests on the left-hand side (SideBarContainer), and a new form to submit a new request on the right (MainContainer & RightContainer).  Included in my MainContainer are the fields required to submit a new form.  In the RightContainer/SelectedRecordTitle, by default is showing the request number depending on what I have selected in the SideBarContainer (which is correct).  However, when I go to submit a new request, I want that SelectedRecordTitle (which is Request #) to be hidden.  Note:  I can hide it all together by using the visible property, but I do want it to be shown when the "new request" option is selected.  I've tried to use an IF with editMode in the visible property, but it completely hides it as well. I feel like I am close but just can't seem to get it.    
 
Any help would be appreciated.  Thanks!!
  • Verified answer
    FLMike Profile Picture
    FLMike 30,517 on at
    Hiding SelectedRecordTitle when submitting a new request
    Hi
     
    You wrote I've tried to use an IF with editMode in the visible property, but it completely hides it as well. I feel like I am close but just can't seem to get it.    
    but didn't actually share the code. Since an IF doesn't do anything alone you should share and explain what you are doing an IF on.
     
    You would use the EditMode
     
    So essentially in the visible. Just make sure you are setting the forms mode properly
     
    Switch(EditForm.Mode,
     
         FormMode.Edit,
           false,
         FormMode.New,
           true
          FormMode.View,
            false
    );
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard