PowerApps – Prefill Default Selected Value

We were recently developing a PowerAPP where we need to prefill the default Selected value.

I was surprised to know even if you have default value selected in SharePoint list column, in PowerAPP it will come as blank.

SharePoint List column:

PowerAPP form Shows as below:


We want when user fills the form default value should be prefilled as in screenshot:


To do above you have to edit the data card in PowerAPPS à go to Advanced and in DefaultSelecteditems

ADD below formula as per default value from the SharePoint choice list you want to have. (Save and Republish)


If(

SharePointForm1.Mode = FormMode.New,

{

Value: “Add Members”

},

Parent.Default

)

Voila! When user now opens the form, he will see prefilled selection in the form.

 

Thanks for reading….

Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

PowerShell Cheat Book

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s