I have a dropdown list (DataCardValue16) Where if I choose "Other" a textbox will appear. If(DataCardValue16.Selected.Value="Other",true,false).
I am trying to make validation that the textbox is required, if user chose "Other" and did not input anything on the textbox the button will be DisplayMode.Disabled.
If(DataCardValue16.Selected.Value="Other" && DataCardValue18.Text="",DisplayMode.Disabled,DisplayMode.Edit)
The Code above works
but I have another Set of dropdown, how to do it?
this worked but should use || (or) instead of && (and). Thank you!
@nagestiada
I made an error. It should be this instead.
If(
DataCardValue16.Selected.Value="Other" && DataCardValue18.Text=""
|| DataCardValue17.Selected.Value="Other" && DataCardValue19.Text=""
DisplayMode.Disabled,
DisplayMode.Edit
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@nagestiada
Can you please send a screenshot and supply the error message?
If(DataCardValue16.Selected.Value="Other" && DataCardValue18.Text="", DataCardValue21.Selected.Value="Yes" && DataCardValue19.Text="" ,DisplayMode.Disabled,DisplayMode.Edit)
I'm getting invalid if statement error
If(DataCardValue16.Selected.Value="Other" && DataCardValue18.Text="" || DataCardValue21.Selected.Value="Other" && DataCardValue19.Text="" ,DisplayMode.Disabled,DisplayMode.Edit)
Im trying this set of code but second statement does not work
Just repeat the validation as a 2nd set of criteria in the FILTER.
If(
DataCardValue16.Selected.Value="Other" && DataCardValue18.Text="",
DataCardValue17.Selected.Value="Other" && DataCardValue19.Text=""
DisplayMode.Disabled,
DisplayMode.Edit
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Try on the displaymode of the button:
If(DataCardValue16.Selected.Value="Other", DisplayMode.Edit, DisplayMode.Disabled)
------------
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.