cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
llserra
Helper II
Helper II

Change value datacard from Dropdown

Hi

I have a Form edit with some datacards from a sharepoint list, this is a computer with  ram ,hd ,veolocity...

Inside i have a DropDown has has a model from another sharepoint list ,with ram ,hd ,veolocity...

I want that if i change DropDown model all datacards change their values with values from the new Model.

I have tryed....

 

ComboBox_Model.Onselect and ComboBox_Model.Onchange -->

DataCardValue119.Text=ComboBox_Model.Selected.var_ram // Datacard ram value

or more simple

ComboBox_Model.Onselect and ComboBox_Model.Onchange --> DataCardValue119.Text="999" //to try

 

But DataCardValue119 never change his value

 

Does anybody know how i can change it also for ram and other datacardsvalues?

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

I tryed this and it works...

 

DataCardValue120.Default

If(Parent.Default<>Value(ComboBox_Model.Selected.var_discoDuro) And Value(ComboBox_Model.Selected.var_discoDuro)<>0;Value(ComboBox_Model.Selected.var_discoDuro);Parent.Default)

 

update:

Value(DataCardValue120.Text)

 

And works ,when i change combobox ,always change datacard value ,if not ,datacard value it's his default value.

 

Thanks

View solution in original post

3 REPLIES 3
rsaikrishna
Community Champion
Community Champion

@llserra 

 

You are not placing the formula in correct location.

 

To set the value of Ram field based on Model field, you should place the formula in Ram field's default property and Update property as well.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Hi Thanks for your answer, it works but not as expected because i want that datacardram value only change if i change drowpdown value. Do you know how to do it?
Thanks again

I tryed this and it works...

 

DataCardValue120.Default

If(Parent.Default<>Value(ComboBox_Model.Selected.var_discoDuro) And Value(ComboBox_Model.Selected.var_discoDuro)<>0;Value(ComboBox_Model.Selected.var_discoDuro);Parent.Default)

 

update:

Value(DataCardValue120.Text)

 

And works ,when i change combobox ,always change datacard value ,if not ,datacard value it's his default value.

 

Thanks

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 (3,510)