Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Inserting or Submitting Data without Using a Form

(1) ShareShare
ReportReport
Posted on by 6

Hello Power Platform Pros,

As a beginner, I’ve learned that data can be collected using a form in Power Apps. However, I’m aiming for a different approach. Instead of using a form, I’d like to gather data by taking multiple inputs individually, and then include a Submit button at the bottom. When all the inputs are filled, I want the Submit button to save the data.

I’m struggling to find a solution to implement this, and would greatly appreciate it if the Power Platform Gurus could guide me. Additionally, I’d love to know which data platform I should connect with for this purpose.

Your expertise would be greatly appreciated!

  • Verified answer
    timl Profile Picture
    timl 33,744 on at
    Inserting or Submitting Data without Using a Form
    Hi @FA-27120653-0
     
    Is there any reason why you don't want to use a form, as that would be the easiest way to save data?
     
    If you want to gather data by taking multiple inputs individually, you would need to call the Patch function like so:
     
    Patch(
        YourDataSource,
        Defaults(YourDataSource),
        {
            Field1: TextInput1.Text,
            Field2: TextInput2.Text,
            Field3: TextInput3.Text
        }
    )
    To enable the save button only when mandatory fields are entered, you can add this to the DisplayMode property of the button.
     
    If(
        IsBlank(TextInput1.Text) || IsBlank(TextInput2.Text) || IsBlank(TextInput3.Text),
        DisplayMode.Disabled,
        DisplayMode.Edit
    )

    In terms of what Data Platform to use, Patch will work with all popular data sources including SharePoint and Dataverse.
     
  • Suggested answer
    kasraouiah Profile Picture
    kasraouiah 247 on at
    Inserting or Submitting Data without Using a Form
    Hello,
     
    I recommand you to use Patch() function
     
    i show you below example of use 
     
    Patch(tableName, {attribute1: component_x.value}) 

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,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard