Hi there,
I have 5 drop downs from which options can be selected. However, user's must not choose the same drop down and duplicate answers for any of the 5 choices - they must all be different.
This is the current formula I use which works:
If(paProject1.Selected.Name = paProject2.Selected.Name,true,false) Or If(paProject1.Selected.Name = paProject3.Selected.Name,true,false) Or If(paProject1.Selected.Name = paProject4.Selected.Name,true,false) Or If(paProject1.Selected.Name = paProject5.Selected.Name,true,false) Or If(paProject2.Selected.Name = paProject3.Selected.Name,true,false) Or If(paProject2.Selected.Name = paProject4.Selected.Name,true,false) Or If(paProject2.Selected.Name = paProject5.Selected.Name,true,false) Or If(paProject3.Selected.Name = paProject4.Selected.Name,true,false) Or If(paProject3.Selected.Name = paProject5.Selected.Name,true,false) Or If(paProject4.Selected.Name = paProject5.Selected.Name,true,false)
If there are duplicate choices, the submit button is disabled and a label becomes visible saying 'You have duplicate projects, please adjust'
However, user's also have the ability to leave drop downs blank. For example, if they only want to choose 2 projects, 3 are left blank. This is now an issue as they cannot submit because it thinks the blanks are duplicates.
Does anyone know of a formula to use so that duplicate entries are disabled, but if the duplicate entries are blanks, they are ignored and the label is not visible.
I have tried a few If(IsBlank, however not had much luck.
Thanks.