Good morning Power Apps Community,
I would love some help to resolve an obstacle in my build.
In my form I have a field that relies on another field. Both of which are dropdowns. I'm trying to lock the first field to say "XYZ" and not show other options. However this has proved rather difficult.
In my app I have
1. A gallery only showing items that are affected by "XYZ"
2. A Form that toggles to NewForm & EditForm
In the Editform mode, the field shows "XYZ" because it's showing data already in the gallery. However with NewForm it's left blank so I can not use view mode on the data card.
One method of partially tackling this would maybe be to use display forms to only allow editing in when newform, and leave it as view only when in Editform. Is this possible?
Code I have so far, which is not working:
If(NewForm(Gallery_ABC) ,DisplayMode.Edit,DisplayMode.View)
Any solutions to this problem would be amazing! Thank you so much for your time 😄