How to disable a button when any input field is empty using wire conditions?

Hi @rbdwt09

I have created a sample app for you in our support org and added you as a team member so that you can see the app and the View I created to demonstrate how to do this. The View is called display_buttons.

I have used the collection Orders with the fields order date, order number, payment method and shipping address.

I have placed 2 Save buttons in the View, one with a primary variant with a save signal attached to it and the other with a secondary variant without any signals.

I have set a GROUP display condition on the secondary button with the ‘all conditions are met’ (the AND condition) variable and then set the fields payment method and shipping address as the target fields and used the condition operator NOT_IN a blank. This ensures that both fields need values to display the primary save button that has the signal to save the wire. I have done the reverse for the secondary button to display or not display.

I have also added an additional condition to the primary save button to display on condition that the wire has changes.

Hope this works for you.