#MultiSelect component

4 messages · Page 1 of 1 (latest)

sage flax
#

The MultiSelect component creates a hidden input with the values comma separated.

<input type="hidden" name="teacherIds" value="7ac4b5e8-87bf-11ed-b495-03998375f871,37304e04-87c0-11ed-a64c-638c1df1d4c4">

I want to change this value to be | separated.

Is there a transformValues props which allows me to get the hidden input to?

<input type="hidden" name="teacherIds" value="7ac4b5e8-87bf-11ed-b495-03998375f871|37304e04-87c0-11ed-a64c-638c1df1d4c4">

And if not, can this feature be added? 🙏

#

Context: I am using remix and do not want to use useState, instead I am just parsing the data in action using lodash.

#

Or maybe a prop that allows us to completely change the hidden field being rendered