Is it possible to have multiple Default Values in a form Choice component

So I have a Choice field being populated from a pre-defined list of options. In the same source as the list of options, I also have a field do mark which of those are default options.

I’ve created a Query column that pulls the Default Option IDs in to one row and also a Joined List that can be used.

But it seems like the Default Value field in the Form screen can only handle one default option. Is there any way around this?

Do you have Select Multiple enabled on the choice component? If you do you should be able to use the joined list as the default value.

Hi, yes I do! I have it set to the Radio button option.

But it doesn’t seem to want to allow the multiple defaults in there.

Here is a picture of it.

Can you show what the joined list column value looks like?

Sure!

This is the joined list that sits in the table the Form is using (inherited from the next screen back). It’s derived from the column next to it which is a Query column that queries the Table that holds what weapon is attached to what unit.

True source of the data is the Is_Default field.

Is this what you were talking about?

Check your joined list and make sure there is no space after the comma delimiter.

Oh yes it looks like there is a space there. How would I go about removing the space?

Would that space stop them from working as defaults?

Yeah it could make a difference. ‘Item’ is not the same as ’ Item’.

Just edit your joined list column and remove any spaces after the delimiter.

It’s because Glide writes your choice without the space after the comma.

Hence when you set the default as “Plasma pistol - standard, Plasma pistol - supercharge, Artificer crozius”, only “Plasma pistol - standard” is picked up, subsequent elements have a space before it so they are not mapped to the actual choice.

2 Likes

This is exactly what the issue was and it’s now working perfectly.

Thank you so much both.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.