I'm currently have this form and I wish to apply a rule where if the user selected "No" in the dropdown button for "Are you currently in the location" then both Latitude and Longitude questions will hide and will appear if the user selects "Yes". Any solution for this?
Yes, it is possible to hide a Latitude and Longitude based on the response to "Are you currently in the location"?
Put the following code in the Visible property of both Latitude_User_DataCard1 and Longitude_User_DataCard1.
Switch( DataCardValue27.Selected.Value, "Yes", true, "No", false );
I am somewhat unsure if this reference DataCardValue27.Selected.Value will work because you are using a combobox. If .Value does not work type DataCardValue27.Selected. including the period and see what autocomplete suggests
---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."
Still does not work
Hi @ywliang96 ,
Set below formulas to make this work:
Latitude_User_DataCard1.Visible=If(DataCardValue27.Selected.Value="No",false,true)
Longtitude_User_DataCard1.Visible=If(DataCardValue27.Selected.Value="No",false,true)
Regards,
Mona
I tried this formula and I gotten this error
"We can't evaluate your formula because the values being compared in the formula aren't the same type"
Any ideas?
Can you please answer my questions I asked on Thursday?
"""
Can you please explain what happened when you tried? Did you use my code exactly and did you try something other than .Value? Was there an error.
A screenshot showing the code you entered would be best. Even better if you can show me the autocomplete options.
"""
Here's is the error when I use your formula in the Latitude_User Visible Property
It gives me an error of the screenshot below
If i use this formula,
It gives me an error of the screenshot below
@ywliang96
It appears you are using OptionSets in CDS. I have not worked with these before. Sorry, but this is not my area of expertise.
I tried with dropdown and it worked but if I tried with combobox, it does not worked. Any idea how to change from combobox to dropdown if my forms already pre-populated by PowerApps automatically?
User | Count |
---|---|
136 | |
126 | |
73 | |
70 | |
69 |
User | Count |
---|---|
204 | |
201 | |
64 | |
63 | |
52 |