To give you an insight my error notification is as such :
If(
IsBlank(TextInput8.Text) || IsBlank(TextInput8_1.Text) || IsBlank(TextInput8_3.Text) || IsBlank(TextInput8_4.Text) || IsBlank(TextInput8_8.Text) || IsBlank(TextInput8_9.Text) || IsBlank(TextInput8_10.Text) || IsBlank(TextInput8_11.Text) || IsBlank(TextInput8_12.Text),
Notify("Please fill out all required fields", NotificationType.Error),
Patch(
Accounts,
Defaults(Accounts),
{
'🏢 Account Name': TextInput8.Text,
'☎️ Main Phone': TextInput8_1.Text,
'👤 Primary Contact': LookUp(
Contacts,
'👤 Full Name' = ComboBox8.Selected.'👤 Full Name'
),
'📧 Email': TextInput8_3.Text,
'🌐 Website': TextInput8_4.Text,
'🏢 Parent Account': LookUp(
Accounts,
'🏢 Account Name' = ComboBox10.Selected.'🏢 Account Name'
),
'🔖 Category': Dropdown5.Selected.Value,
'📋 Description': TextInput8_7.Text,
'Address 1: Street 1': TextInput8_8.Text,
'Address 1: Street 2': TextInput8_9.Text,
'Address 1: City': TextInput8_10.Text,
'Address 1: State/Province': TextInput8_11.Text,
'Address 1: ZIP/Postal Code': TextInput8_12.Text
}
);
Notify("New Account has been Successfully submitted", NotificationType.Success);
Set(varaddnewaccount, false)
);
Reset(TextInput8_1);
Reset(TextInput8_3);
Reset(TextInput8_4);
Reset(TextInput8_7);
Reset(TextInput8_8);
Reset(TextInput8_9);
Reset(TextInput8_10);
Reset(TextInput8_11);
Reset(TextInput8_12);
Reset(Dropdown5);
Reset(ComboBox10);
Reset(ComboBox8);
this brings up an error like this and prevents the screen from navigating or in my case setting the varaddnewaccount to false / this is also using the gallery as a form rather than a form, its how I prefer to do it.
