- 🇫🇷France gabesullice 🇫🇷 ①③ UTC+2
A gaunt hand breaks through the damp earth of the cemetery grounds, once dead, the zombie (issue) rises to torment us again.
heh, jokes aside. I stumbled in here because I came across a similar need. @tim.plunkett, you're right that you can make this work with the form system as-is, but one needs to customize the
validateForm
method and callsetValueForElement()
method. So yes, it's already possible, but only if you have a deep enough understanding of the form API to understand what's going on inFieldStorageAddForm
and are willing to set data during the validation step.I think it's a reasonable feature request to make this part of the machine name form element API via a
#value_prefix
property or similar. Perhaps as a#process
callback. I guess that's why this issue hasn't ever been closed.Maybe this bump will breath new life into the idea ;)