Conditionally mandatory field??
Hi,
Ive seen similar threads on this but none of the examples shown have worked for me.
Say I have text fields “Name” and “Description”; and a drop down called “Status” that has 2 choices: “Save” and “Ready”. My Name field is always Mandatory, that’s easy. But I only want the “Description” field to be mandatory if “Status” = “Ready”.
Ive been adding a workflow/action under create and edit - form submission - validate.
If (input.Description == null && input.Status == “Ready”)
{
alert “Enter Description”;
cancel submit;
}
What am I doing wrong?