Hi there,
I need to execute this command when a textfield is NOT empty :
Remove(RequiredFields, First(Filter(RequiredFields, Id = 1)));
and re-populate it is empty (if the user deleted the content in the textfield for example).
Each textfield is sitting in a datacard.
I can automatically populate a label for example with :
If(IsBlank(DataCardValue14.Text), "false", "true")
but i cannot at the moment work out to do a remove command if its empty
I guess i could use RemoveIF but in which property would i add that if the textfield is blank.
Any help would be great.
Solved! Go to Solution.
Hi @jdhough55 ,
As you mentioned there are data cards in your App, I assume you are using an Edit form. So you can append the RemoveIf function OnSuccess property of that form.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @jdhough55
Here is the syntax
RemoveIf( DataSource, Condition [, ... ] )
here is documentation
Remove and RemoveIf functions in Power Apps - Power Platform | Microsoft Docs
You could do :
Removeif(
RequiredFields,
IsBlank(DataCardValue12.Text)
)
Regards
Hi @jdhough55 ,
As you mentioned there are data cards in your App, I assume you are using an Edit form. So you can append the RemoveIf function OnSuccess property of that form.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.