cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jebediah
Frequent Visitor

NewForm - Using pre-set values

Hi,

 

I have 2 Forms showing in my App, Projects and Deliverables. Both forms have a New and a Save button.

 

I was trying to do this, when I click on the New Button for my Deliverables form, I want my dropdownlist in the form, to set to a value that matches a Label Text field as the default value

 

Thanks for your help

 

 

5 REPLIES 5
v-xiaochen-msft
Community Support
Community Support

Hi @Jebediah ,

 

I did a simple test for you.

1\ This is my list 'LIST113'.

v-xiaochen-msft_0-1618889696105.png

 

2\ Add a lable control 'Label5'.

 

3\ Add an edit form control 'Form1' and set its DataSource property to:

 

LIST113

 

 

4\ Add an Icon and set its Onselect property to:

 

NewForm(Form1)

 

 

5\ Set the Title datacard's Default property to:

 

If(Form1.Mode=FormMode.New,Label5.Text, Parent.Default)

 

 

6\ The result is as follows:

AAA.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

Jebediah
Frequent Visitor

Thanks for your reply, I tried and no luck

Sorry if my initial explanation wasn't clear enough, I was looking to set the default value on a dropdown to match a certain label text when creating a new form. So just populate that information in the form

 

Here is my error

v-xiaochen-msft
Community Support
Community Support

Hi @Jebediah ,

 

So , what's Items property of your dorpdown control?

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

Sorry for the delay.  Dropdown item property is this : Choices([@Deliverables].Project_x0020_Name)

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,875)