Update viewfield state with placeholder addition values
Hello everyone,
I wish update a viewfield state with dynamic placeholder values operation (the last line of the screenshot).
How can I afford this?
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1250736970246651915/image.png)
2 Replies
$getRecord can only provide "real" inputs value, but not placeholders values. I'm trying to find a workaround and use hidden fields instead right now, but my hidden fields won't update, I don't know why (but I'm working on it)
I don't know how update my viewField state as soon as juste one of the three fields are updated
There is nothing simpler than using
afterStateUpdated()
and afterStateHydrated()
on all my fields ? I mean, on placeholders, you can juste use the content()
method with a Closure and it will be updated as soon as a live()
field is updated. Can't we do the same on viewField, or maybe other fields ?