Good afternoon, i've a button in my app that will send a letter to a customer however i'm wanting the button to be greyed out if we don't have all the information in.
the information is all stored in dataverse and i select the record from the nov_sel_gallery. this is the code i am using but regardless of whether the fields are empty it just shows the button as active.
I suspect i may need to check if the text boxes in the app are empty instead but that won't work for me as it requires the user to remember to press the save button when they have updates the boxes and as we all know users are not always reliable.
If(
IsBlank(nov_sel_gal.Selected.comp_name_out || nov_sel_gal.Selected.comp_add_out || nov_sel_gal.Selected.comp_add_out_2 || nov_sel_gal.Selected.comp_add_out_3 || nov_sel_gal.Selected.comp_add_out_4 || nov_sel_gal.Selected.comp_reg_out || nov_sel_gal.Selected.q_ref || nov_sel_gal.Selected.comp_name_in || nov_sel_gal.Selected.comp_reg_in || nov_sel_gal.Selected.cust_cont_email || nov_sel_gal.Selected.comp_add_in || nov_sel_gal.Selected.comp_add_in_2 || nov_sel_gal.Selected.comp_add_in_3 || nov_sel_gal.Selected.comp_add_in_4 || nov_sel_gal.Selected.acc_man || nov_sel_gal.Selected.acc_man_position || nov_sel_gal.Selected.m_ticket_ref),
DisplayMode.Disabled,DisplayMode.Edit
)
Thanks in advance and please let me know if you need any other information.
Alastair