I have a SAIL form with a dropdown field which works fine except when a value is

I have a SAIL form with a dropdown field which works fine except when a value is defaulted in and the user then selects the placeholder. As the placeholder doesn't have an index position it causes an "ArrayIndexOutOfBoundsException" on the save.
I have tried various configurations with the save but have been unable to come up with one that works :

....
a!dropdownFieldByIndex(
label: "Member supplier",
instructions: "Value saved: " & ri!newMemberDetails.supplier,
choiceLabels: local!supplierList.supplier,
placeholderLabel: "--- Select a New Member ---",
value: if(
rule!APN_isBlank(ri!newMemberDetails.supplier),
{},
whereContains(ri!newMemberDetails.supplier, local!supplierList.supplier)
),
...

OriginalPostID-150635

OriginalPostID-150635

  Discussion posts and replies are publicly visible