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 / Use form without havin...
Power Apps
Unanswered

Use form without having to choose item in gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all

 

I am building a Power App and have run into a problem I cannot solve.

I would like my users to be able to enter a batch number in the app, and then I what it to detect if the batch has previously been entered into the data set.

If the batch number is already in the data set I would like the form to show the relevant data, and if not, I would like the form to submit a new record.

I know how to get it to show the data that is already in the data set, but if I then enter a new batch number, then it says no item to display.

 

Do anyone have a suggestion for this issue?

CM4_0-1645695512767.png

 

Categories:
I have the same question (0)
  • venka91 Profile Picture
    1,119 on at

    On the search formula you use, Please add the condition to check for Blank. If the results are Blank then make the form mode to FormMode.New. Probably you need to set a variable for the formmode, so you can dynamically change when you do the validation.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much for the answer. However, I am still completely lost on how to write the formulas.

     

    When I have this as item for my forms it works, and I can edit and submit all data to the datasource:

    First(Filter(TableEtalpha, FærdigvareBatchNummer=LblFVbatchnummer.Text))

     

    TableEtalpha is my datasource

    FærdigvareBatchNummer is my column in the datasource

    LblFVBatchnummer is a label to write the selected batch number.

     

    But I cannot figure out, how to add a new item to the datasource.

  • venka91 Profile Picture
    1,119 on at

    Okay. OnChange property of your textbox, create a collection with the dataset record. Then Item property of Form give this collection name. At the same time, you can also if condition to see if the Collection is Blank. If the collection is Blank, then make Form as FormMode.New, else FormMode.Edit

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard