Replies: 2 comments 2 replies
-
after poking around a bit more, it seems like my best bet here may be to do a custom plugin that just disregards the name alltogether and uses the Plugin's element value to trigger a select box. will leave this open in case other folks want to chime in with another take |
Beta Was this translation helpful? Give feedback.
-
Hey @mattfeury Currently, the field names are automatically determined by the following code: I also didn't think the automatically generated field names provided a good user experience. Using plugin/schema settings to decide on the field names is a great idea. One thing to be mindful of is that the field names need to be unique, so it might be necessary to come up with a scheme, such as appending numbers to the end. On a slightly different note... Although implementation has not started yet, there is a plan to allow adding schemas via drag and drop from the left sidebar. #400 For this implementation, I was thinking of adding an icon property to the schema definition. It seems possible to also include the addition of a fieldName property with this update. |
Beta Was this translation helpful? Give feedback.
-
hello! lovely lib you all have made.
for my use case, i'd like to only allow a user in the "Designer" to name fields from a predefined list of name options (the use case being i want to map these fields to certain generated values on the backend). is there any precedent for doing this?
one solution seems like it could be to create a new schema and just do it all myself, but it seems like the actual "naming" piece of things is handled outside of the schema itself? i'm not even sure it's the right approach.
the hackier approach would be just to fork the lib and modify the field name "input" to be a select instead of a basic text field.
i figured i'd ask here to see if there was something i'm missing before going down any particular path.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions