cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Post Prodigy
Post Prodigy

What happen if we have a Required field inside our sharepoint list and we remove it from the create/edit forms

I am not sure if PowerApp will rely on the setting we set for the fields. so let say i have a list named Project which contain these 2 fields:-

 

1. Project Status >> Required (on both content type and site column levels) >> does not have a default value.

2. Project Estimated Date >> Optional >> default = today

 

and we removed these 2 fields from the powerapp create and edit forms.. so will we be able to save the item, even if we did not specify a value for the Project Status? and will the Project Estimated Date get a default value?

2 ACCEPTED SOLUTIONS

Accepted Solutions
mdevaney
Super User III
Super User III

@johnjohn123 

Project Status is a required field so it must have a value specified in your PowerApps form.  If no value is supplied then the form will not submit.

 

There are two possible solutions here.  Either of them should be done in SharePoint, not PowerApps:

1.  Change Project Status so it is not a required field.

2.  Give Project Status a default value so if no status is supplied the record can still be created.  (example: Opened)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@johnjohn123 

You must supply the Default value in PowerApps manually.

 

Put this code in the Default property of your control.

Defaults(your_datasource_name).your_field_name

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

View solution in original post

3 REPLIES 3
mdevaney
Super User III
Super User III

@johnjohn123 

Project Status is a required field so it must have a value specified in your PowerApps form.  If no value is supplied then the form will not submit.

 

There are two possible solutions here.  Either of them should be done in SharePoint, not PowerApps:

1.  Change Project Status so it is not a required field.

2.  Give Project Status a default value so if no status is supplied the record can still be created.  (example: Opened)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Ok thanks for the update, i changed the field to be optional >> and i set a default value for the field inside SharePoint >> but when the item is visible inside powerapp form the default value will not be shown.. so is power app suppose to sync the default value for the field from SharePoint? is the answer is yes , then why this is not happening in my case, although i have refresh the data source..

@johnjohn123 

You must supply the Default value in PowerApps manually.

 

Put this code in the Default property of your control.

Defaults(your_datasource_name).your_field_name

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (54,902)