Hi Guys,
I am having the three fields say as dropdown field as (dropdown1) and TextInuput as (TextInput1) and label as (label1) ,when I select any values from the dropdown1 ,the other two fields TextInput1 and Label1 Should Change the display mode as "Edit" to "View.
And I will have Another button as (Button1) When I click the Button1, the TextInput1 and Label1 should be again changed to edit mode.
It should be:
UpdateContext ({varMode:true})
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Colon not coma
I am getting error like this.
Try this:
1.Set the AllowEmptySelection of the dropdown to true
2. In the DisplayMode of the label and the Textbox put:
If(Dropdown1.Selected.Value="", DisplayMode.Edit, DisplayMode.View)
Am wondering why you need another button because if the dropdown is blank Automatically the mode Will change
But if you still need it
3. Insert a button to change the displaymode:
UpdateContext ({varMode,true})
The change the displaymode formula to;
If(Dropdown1.Selected.Value="" || varMode=true, DisplayMode.Edit, DisplayMode.View)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional