Hi All,
I have requirement where if dropdown called Cost Recoverable is Yes Then I have to ask used to fill in Customer name and Customer PO Number, and if Cost Recoverable is No, I have to set Customer Name and Customer PO Number as NA.
The data is coming from Dataverse tables .
Something like this.
How could I achieve this? Please advice.
@jinivthakkar @v-xiaochen-msft @v-xida-msft
Solved! Go to Solution.
Hi @aaroh_bits ,
It looks like you are using the textinput control on ‘Customer name’ and ‘Customer PO Number’.
I suggest you use the Default property of the label control instead of the Visible property.
I made a simple example for you.
1\ This is my test list ‘LIST70’. ‘Customer name’ and ‘Customer PO Number’ are Single line of text columns. ‘Cost Recoverable’ is a choice column.
2\ Set the DataCardValue4 ‘s OnChange property to:
Reset(DataCardValue6);Reset(DataCardValue7) // DataCardValue6 is the control of Customer name. DataCardValue7 is the name of Customer PO Number.
3\ Set the Default property of DataCardValue6 to:
If(DataCardValue4.Selected.Value = "Yes", Parent.Default, "NA")
Set the DisplayMode property of DataCardValue6 to:
If(DataCardValue4.Selected.Value="Yes", Parent .DisplayMode,DisplayMode.View)
4\ Set the Default property of DataCardValue7 to:
If(DataCardValue4.Selected.Value = "Yes", Parent.Default, "NA")
Set the DisplayMode property of DataCardValue7 to:
If(DataCardValue4.Selected.Value="Yes", Parent .DisplayMode,DisplayMode.View)
5\ The result is as follows:
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
@aaroh_bits please check this https://www.youtube.com/watch?v=pkZG2boN7jQ
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Thaanks @jinivthakkar for your reply.
Thanks for providing the Shane’s video
Hi @aaroh_bits ,
It looks like you are using the textinput control on ‘Customer name’ and ‘Customer PO Number’.
I suggest you use the Default property of the label control instead of the Visible property.
I made a simple example for you.
1\ This is my test list ‘LIST70’. ‘Customer name’ and ‘Customer PO Number’ are Single line of text columns. ‘Cost Recoverable’ is a choice column.
2\ Set the DataCardValue4 ‘s OnChange property to:
Reset(DataCardValue6);Reset(DataCardValue7) // DataCardValue6 is the control of Customer name. DataCardValue7 is the name of Customer PO Number.
3\ Set the Default property of DataCardValue6 to:
If(DataCardValue4.Selected.Value = "Yes", Parent.Default, "NA")
Set the DisplayMode property of DataCardValue6 to:
If(DataCardValue4.Selected.Value="Yes", Parent .DisplayMode,DisplayMode.View)
4\ Set the Default property of DataCardValue7 to:
If(DataCardValue4.Selected.Value = "Yes", Parent.Default, "NA")
Set the DisplayMode property of DataCardValue7 to:
If(DataCardValue4.Selected.Value="Yes", Parent .DisplayMode,DisplayMode.View)
5\ The result is as follows:
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
182 | |
52 | |
41 | |
40 | |
34 |
User | Count |
---|---|
251 | |
81 | |
71 | |
66 | |
66 |