Is it possible to set same name for some form elements

I'm trying to set the same field name (value) for three different input elements that are displayed based on the selected type. However, I'm encountering an error when I try to select the "Color" type. The code currently works, but I'm unable to display the value for the color and image fields in the edit modal.
5 Replies
LeandroFerreira
LeandroFerreira3mo ago
name should be unique I guess
dzoniia
dzoniiaOP3mo ago
Even though the elements are hidden?
LeandroFerreira
LeandroFerreira3mo ago
why are you using hidden fields?
dzoniia
dzoniiaOP3mo ago
if tag_value->type == 'color' show me ColorPicker { string hex color } if tag_value->type == 'image' show me FileUpload { string path } if tag_value->type == 'label' show me TextInput { string label } filed in tag_value [value] visible * fields
Want results from more Discord servers?
Add your server