I would like a popup box come up depending on the selection from a combobox
Column = Request_Type
Pick Lists = IT Hardware / Software Support / Karls Table / Powermic / Other
if someone selects Karls Table, i would like to have a popup box come up, thinking i need to add an if statement to the onchange property?
can we add a popup box depending on the selection of the dropdown?
added screenshot
Solved! Go to Solution.
DataCardValue6.OnChange =
If(Self.Selected.Value = "Karls Table",
UpdateContext({ctxShowww: true}),
UpdateContext({ctxShowww: false})
);
Popup.visible =
ctxShowww && DataCardValue6.Selected.Value1 = "Karls Table"
buttonInsidePopup.OnSelect =
UpdateContext({ctxShowww: false})
DataCardValue6.OnChange =
If(Self.Selected.Value = "Karls Table",
UpdateContext({ctxShowww: true}),
UpdateContext({ctxShowww: false})
);
Popup.visible =
ctxShowww && DataCardValue6.Selected.Value1 = "Karls Table"
buttonInsidePopup.OnSelect =
UpdateContext({ctxShowww: false})
OnVisible property of the screen add:
Set(varPopUp, false)
In the OnChange property of the combobox add:
If(Self.Selected.Value ="Karls Table",Set(varPopUp,true))
Now depending on how You create a popup Box if it's a container what I recommend place in the Visible property of the container
varPopUp
If You use something else add this above code to all controls that make the popup to make sure they show up or disepire
Also You will need to add Icon or button to close the popUp add below code to OnSelect property of that control
Set(varPopUp, false)
thank you, worked like a charm