Re: Remove image from CDS
Hi
Alright, you are referring to a particular "Value" a "A record".
Please follow this step as "one of the option":
- Insert a Button / Trash Icon in the gallery, and it will appear in each record.
- Please set the formula to:
UpdateIf(DS, FieldTitle1 = ThisItem.FieldTitle1, {ImageField: ""})
It means:
Update DS, if FieldTitle1 is equivalent to the This Item's Field Title, Then replace ImageField with Empty records.
NB: Please take note, FieldTitle1 = ThisItem.FieldTitle1 must be from a UNIQUE No. Otherwise, those with similar FieldTitle1 will be deleted at the same time. Please be careful
Hope this helps.
https://powerapps.microsoft.com/en-us/tutorials/function-update-updateif/
UpdateIf function
Use the UpdateIf function to modify one or more values in one or more records that match one or more conditions. The condition can be any formula that results in a true or false and can reference columns of the data source by name. The function evaluates the condition for each record and modifies any record for which the result is true.
To specify a modification, use a change record that contains new property values. If you provide this change record inline with curly braces, property formulas can reference properties of the record that's being modified. You can use this behavior to modify records based on a formula
Sample screenshot is my demo and it works as explained.
Use UpdateIf