Hi Guys,
I have the below code on my OnSelect to not allow the user to proceed to the next screen unless certain fields are filled in. Could you tell me how I can also include that If 'Dropdown-Status' is set to the option Closed then 'Txt-ImmediateCorrection'.Text must have some text in the box and the same for 'Txt-PermanentPreventative so both boxes must have something entered into the box if the status dropdown is set to closed otherwise they can't proceed to the next screen? If the Status dropdown is set to Open then those 2 text boxes don't require to have data?
If(
'Dropdown-Classification'.Selected.Value = "Please select an option" ||
'Dropdown-Status'.Selected.Value = "Please select an option" ||
'Dropdown-Hours'.Selected.Value = "Hour" ||
'Dropdown-Minutes'.Selected.Value = "Minutes" ||
'Dropdown-JobSpecific'.Selected.Value = "Please select an option" ||
'Dropdown-BusinessUnit'.Selected.Value = "Please select an option" ||
'Dropdown-SourceFunction'.Selected.Result = "Please select an option" ||
'Dropdown-CauseCategory'.Selected.Title = "Please select an option" ||
'Dropdown-Source'.Selected.Value = "Please select an option" ||
'Dropdown-BusinessChange'.Selected.Value = "Please select an option",
Notify("Please fill out all items, anything highlighted in red requires something entering");
Set(varOnSubmit, true),
Navigate(Costs,Cover);
Set(varOnSubmit, false)
)
Many Thanks