cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saikiran
New Member

Form Submission On an user

Hi

I want to create a form in which a custom user  gives inputs and when he clicks submit button ,the entered values in he form Should submit against database.

 

Current Approach:I  have 3 text boxes and one Button ,When i enter the text and click on a submit button it should  populate the values inside the database.

 

 

4 REPLIES 4
Super User
Super User

Re: Form Submission On an user

@saikiran
Can you please clarify two things for me?

1. What is meant by “Custom User”

2. How would the form look/behave differently from how it is now. Screenshots would be helpful.

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
saikiran
New Member

Re: Form Submission On an user

Lets consider  this ,

 

An empty form with following fields

 

Name,JoiningDate ,manager

 

When i enter the above  details from a form it should save to Database when i click on a button.

 

 

 

 

 

 

 

 

Super User
Super User

Re: Form Submission On an user

@saikiran
Are you just looking for the code to submit the form? If those controls are in and Edit Form You can use this code in the OnSelect property of your button.

SubmitForm(your_form_name);

If they are not in a form put this code in the OnSelect property. Change the fieldnames to match your datasource and the control names to match your controls.

Patch(
your_datasource_name,
Defaults(your_datasource_name),
{
fieldname1: TextInput_Employee.Text,
fieldname2: TextInput_Manager.Text,
fieldname3: TextInput_Department.Text,
fieldname4: DatePicker_Date.SelectedDate
}
)

——
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
Highlighted
dynamicsedge Power Participant
Power Participant

Re: Form Submission On an user

@saikiran 

 


@saikiran wrote (emphasis added):

...  gives inputs and when he clicks submit button ,the entered values in he form Should submit against database.

... When i enter the text and click on a submit button it should  populate the values inside the database.

 

 


You refer to "the database" and "submit against database".

 

What is this "database" to which you are referring exactly?

Also, if the database is Common Data Service, what is the Entity you are trying to "submit against"?

If the data source is something else, please provide the relevant details.  

 

We would suggest you post more detail regarding what is your current data source on the PowerApp.

 

If you do not currently have a data source, that is part of your problem.

Without a data source, you would have nothing to submit against.

 

You would go to "Data Sources" (use database looking icon on left) and add a data source.

Then go to select the form and under "Data source", choose the data source you just added under "In your app".

 

InYourApp.png

 

 

We recommend Common Data Service as the data source.

 

Also, you can do this another way:  go to select the form directly from your screen where the form is, and under "Data source" you can choose the data source from there to add under "Entities" or "Connectors".

 

 

 

 

 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,990)