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

Default edit form based on previous submission

I have a form and then another button to edit the form. The edit form button takes the user to a gallery populated only by their form submission. When they click the record I want the dropdowns to be defaulted to what they chose when they submitted the form. This is what I have so far for the datacard default LookUp(Freeform, 'User Retest' = varRecord.ID). The form has an item called varRecord, how can I use varRecord or the ID column to acheive this. I want to put the user retest dropdown response to be populated in the edit form. 

14 REPLIES 14

It is text @RandyHayes 

@powerapps890 

Hmmm, then where are you seeing the expected table value error?  I'm a little confused.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Now it says expected record value @RandyHayes 

@powerapps890 

What I have gathered:

1) Your underlying column is a Text column

2) Your Items on the ComboBox are set to  ["CS", "In-Vitro", "In-Vivo"]

 

You should then have the following set:

1) Your DataCard Default property should be : ThisItem.yourColumnName (replace yourColumnName with the name of your column)

2) Your ComboBox DefaultSelectedItems property should be set to: {Value: Parent.Default}

3) Your DataCard Update property should be set to: yourComboboxName.Selected.Value (replace with combobox name)

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

@powerapps890 

By the way...in the future, to do this type of a datacard, simply change its control type in the EditForm field definitions to "Allowed Values".  Then adjust the AllowedValues property of the DataCard to be your items -  ["CS", "In-Vitro", "In-Vivo"]

PowerApps will do all the rest of the work for you...no other adjustment is needed.'

 
 

Screenshot 2020-10-22 133341.png

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,607)