You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want id to always be UUIDs. Does RJSF support having the id field generated by a custom function so that when the user clicks the + button to add a new item, the id field is automatically set to a newly generated UUID?
Bonus: Is it also possible to both generate the UUID value upon adding the item and prevent the user from changing it?
I only found similar discussions on stack overflow regarding generating a default date field to dynamically get "current time" as the default value, but the question was not fully answered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say I have a schema that contains an array of items, where each item has
id
andname
.I want
id
to always be UUIDs. Does RJSF support having theid
field generated by a custom function so that when the user clicks the + button to add a new item, the id field is automatically set to a newly generated UUID?Bonus: Is it also possible to both generate the UUID value upon adding the item and prevent the user from changing it?
I only found similar discussions on stack overflow regarding generating a default date field to dynamically get "current time" as the default value, but the question was not fully answered.
Beta Was this translation helpful? Give feedback.
All reactions