Hi Community,
How could I use the DisplayMode property to make sure that if several text entries and galleries were completed, a button would appear to send a response with the Patch function?.
Regards,
Francisco

Hi Community,
How could I use the DisplayMode property to make sure that if several text entries and galleries were completed, a button would appear to send a response with the Patch function?.
Regards,
Francisco
Hi,
You would need to build a full validation formula.
In the DisplayMode for the button you would add something like this. Remember you said gallery and text boxes.
I also want to note that you essentially described making something invisible, but you asked how to use DisplayMode. In my example they can SEE it but they cannot click it.
You can also put this code in the buttons Visible and simply change DisplayMode.Edit to true, and DisplayMode.Disabled to false and then it will be visible/invisible
If(
!IsBlank(TextInput1.Text) &&
!IsBlank(TextInput2.Text) &&
!IsEmpty(ComboBox3.SelectedItems) &&
!IsBlank(Gallery2.Selected.ChangedDescription)
,
DisplayMode.Edit,
DisplayMode.Disabled
)
So it depends on what field types you wanna check but thats it above.
You can also do = and not = etc. Just have to chain it altogether
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey