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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,316)