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 / Edit Icon launches one...
Power Apps
Unanswered

Edit Icon launches one form, but not Ref ID connected form - blank

(0) ShareShare
ReportReport
Posted on by 44

I have an app where I setup a dashboard on the homescreen showing all the items that have been submitted and connects to a contentscreen where I have a gallery of five tabs consisting of 5 different forms that make up a complete Questionnaire: Project Info, Questionnaire, Information Types (table format), Access List (table), and Third Party listing (table).

 

I can create new items with form mode new on each tab on the Content Screen, but can't edit all tabbed forms. The questionnaire tab shows empty for view and edit.  

 

Here is my code on the HomeScreen for the gallery:

If(varTabSelected=1,'PIA Project and Contacts', Filter('PIA Project and Contacts', 'Created By'.Email = User().Email))

Creating a new record

Set(varRecord, Blank()); //sets the record from the gallery item selected
ResetForm(formPIAIntro); //resets the default main form to input the PIA contact and project info
NewForm(formPIAIntro); //establishes a blank new form to enter a new PIA
ResetForm(formquest); //sets up a new for the questionnaire portion of the PIA
NewForm(formquest);
Navigate(ContentScreen)

 

Edit Icon code:

Set(varRecord, ThisItem);
ResetForm(formPIAIntro);
EditForm(formPIAIntro);
ResetForm(formquest);
EditForm(formquest);
Set(varQuestion, ThisItem); //set for Questionnaire (formquest) tab on the Content Screen. when I appy to the formquest 'Item" i get an error
Navigate(ContentScreen)

View

Set(varRecord, ThisItem);
ResetForm(formPIAIntro);
ViewForm(formPIAIntro);
ResetForm(formquest);
ViewForm(formquest);
Navigate(ContentScreen)

 

Sharepoint List Relationship code

If(formquest.Mode = FormMode.New, varRecord.ID, ThisItem.'Ref ID')

 

Hopefully, this is enough to help me get my formquest to show on an edit or view.

GalleryContent.png
EditFormCode.png
GalleryTabs_HomeScreen.png
Categories:
I have the same question (0)
  • wrightcomply Profile Picture
    44 on at

    Looks as if my post hasn't garnered any ideas.  Perhaps a better explanation of what I'm trying to achieve.  I've attached a Word form that is used currently. What I'm trying to do with PowerApps is convert this form to my PowerApp. I broke the form down by content type; Introduction stuff, questionnaire stuff and table stuff, stored in corresponding SharePoint Lists with Relationship ID's.  I want to create a new PIA, and be able to edit each section. 

  • wrightcomply Profile Picture
    44 on at

    Here's the structure of my PowerApp

  • wrightcomply Profile Picture
    44 on at

    Appears I solved it with using LookUp('PIA Questionnaire','Ref ID'=Gal1st2tabs.Selected.ID).

    I seem to have discovered that when going from one gallery (HomeScreen) to another gallery (Content Screen) the second and subsequent tabs can use item = Gal1st2tabs.Selected and instead rely on the Lookup for sequent tabs in my second gallery.

     

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @wrightcomply ,

     

    The item property of your questionnaire form is empty, which explains why you don't see any records:

     

    BCBuizer_0-1648499686497.png

     

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @wrightcomply ,

     

    Did you have any joy finding the solution for your issue? If so, please mark the solution for other users to benefit.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard