Prefill field with Get

In an TextInput is it possible to prefill the value with for example $get(../../product_name) ?
Solution:
Not in the way you’re probably thinking. What you can probably do is $set it from the other field. ```php Input::make() ->afterStateHydrated(fn(Set $set, $state) => $set(‘other_field’, value based on $state))...
Jump to solution
2 Replies
Solution
awcodes
awcodes4mo ago
Not in the way you’re probably thinking. What you can probably do is $set it from the other field.
Input::make()
->afterStateHydrated(fn(Set $set, $state) => $set(‘other_field’, value based on $state))
Input::make()
->afterStateHydrated(fn(Set $set, $state) => $set(‘other_field’, value based on $state))
JJSanders
JJSanders4mo ago
Thanks