Adding a value to a hidden field - or a suggestion
I'm trying to add a uuid to a hidden field in a builder component by default but it doesn't seem to be populating the value on load - I want to pass this value back into a different model as part of a builder action which is working but I just can't get the uuid in place:
Solution:Jump to solution
I've managed to crack it
```
->fillForm(function (
array $arguments,
FormsModel $record,...
3 Replies
Cant you set the UUID in model observer or on create hook?
I've managed to do it like this:
which works on create but when I try to edit the field isn't filled with the default value in here:
It seem like the hidden field isn't pulling in the db value since that's saved correctly, but as soon as I click the builder action it clears the value
Solution
I've managed to crack it