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
name should be unique I guess
Even though the elements are hidden?
why are you using hidden fields?
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